Class: PaperTrail::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/mongo_trails/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_sidekiqObject

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_configObject

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_prefixObject

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_configObject

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_optionsObject

Returns the value of attribute sidekiq_options.



5
6
7
# File 'lib/mongo_trails/config.rb', line 5

def sidekiq_options
  @sidekiq_options
end

#sidekiq_workerObject

Returns the value of attribute sidekiq_worker.



5
6
7
# File 'lib/mongo_trails/config.rb', line 5

def sidekiq_worker
  @sidekiq_worker
end