Class: PaperTrail::Config
- Inherits:
-
Object
- Object
- PaperTrail::Config
- Defined in:
- lib/mongo_trails/config.rb
Instance Attribute Summary collapse
-
#enable_sidekiq ⇒ Object
Returns the value of attribute enable_sidekiq.
-
#mongo_config ⇒ Object
Returns the value of attribute mongo_config.
-
#mongo_prefix ⇒ Object
Returns the value of attribute mongo_prefix.
-
#mongo_trails_config ⇒ Object
Returns the value of attribute mongo_trails_config.
-
#sidekiq_options ⇒ Object
Returns the value of attribute sidekiq_options.
-
#sidekiq_worker ⇒ Object
Returns the value of attribute sidekiq_worker.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
14 15 16 17 18 19 20 21 22 |
# File 'lib/mongo_trails/config.rb', line 14 def initialize @mutex = Mutex.new @enabled = true @serializer = PaperTrail::Serializers::YAML @has_paper_trail_defaults = {} @enable_sidekiq = false @sidekiq_options = { queue: :default, retry: true, backtrace: false } end |
Instance Attribute Details
#enable_sidekiq ⇒ Object
Returns the value of attribute enable_sidekiq.
5 6 7 |
# File 'lib/mongo_trails/config.rb', line 5 def enable_sidekiq @enable_sidekiq end |
#mongo_config ⇒ Object
Returns the value of attribute mongo_config.
5 6 7 |
# File 'lib/mongo_trails/config.rb', line 5 def mongo_config @mongo_config end |
#mongo_prefix ⇒ Object
Returns the value of attribute mongo_prefix.
5 6 7 |
# File 'lib/mongo_trails/config.rb', line 5 def mongo_prefix @mongo_prefix end |
#mongo_trails_config ⇒ Object
Returns the value of attribute mongo_trails_config.
5 6 7 |
# File 'lib/mongo_trails/config.rb', line 5 def mongo_trails_config @mongo_trails_config end |
#sidekiq_options ⇒ Object
Returns the value of attribute sidekiq_options.
5 6 7 |
# File 'lib/mongo_trails/config.rb', line 5 def @sidekiq_options end |
#sidekiq_worker ⇒ Object
Returns the value of attribute sidekiq_worker.
5 6 7 |
# File 'lib/mongo_trails/config.rb', line 5 def sidekiq_worker @sidekiq_worker end |