Module: ActiveSnapshot

Defined in:
lib/active_snapshot.rb,
lib/active_snapshot/config.rb,
lib/active_snapshot/version.rb,
lib/active_snapshot/models/snapshot.rb,
lib/active_snapshot/models/snapshot_item.rb,
lib/generators/active_snapshot/migration_generator.rb,
lib/active_snapshot/models/concerns/snapshots_concern.rb,
lib/generators/active_snapshot/install/install_generator.rb

Defined Under Namespace

Modules: SnapshotsConcern Classes: Config, InstallGenerator, MigrationGenerator, Snapshot, SnapshotItem

Constant Summary collapse

VERSION =
"0.5.2".freeze
@@config =
ActiveSnapshot::Config.new

Class Method Summary collapse

Class Method Details

.config(&block) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/active_snapshot.rb', line 9

def self.config(&block)
  if block_given?
    block.call(@@config)
  else
    return @@config
  end
end