Module: Mongoid::Archivable

Extended by:
ActiveSupport::Concern
Defined in:
lib/mongoid/archivable.rb,
lib/mongoid/archivable/depot.rb,
lib/mongoid/archivable/config.rb,
lib/mongoid/archivable/gluten.rb,
lib/mongoid/archivable/version.rb,
lib/mongoid/archivable/restoration.rb,
lib/mongoid/archivable/process_localized_fields.rb

Defined Under Namespace

Modules: Depot, Gluten, Restoration Classes: Config, ProcessLocalizedFields

Constant Summary collapse

VERSION =
'1.7.1'.freeze

Class Method Summary collapse

Class Method Details

.configObject



13
14
15
16
# File 'lib/mongoid/archivable.rb', line 13

def config
  @config ||= Config.new
  @config
end

.configure {|config| ... } ⇒ Object

Yields:



18
19
20
# File 'lib/mongoid/archivable.rb', line 18

def configure(&proc)
  yield config
end