Method: EntitySnapshot::Postgres.assure

Defined in:
lib/entity_snapshot/postgres/postgres.rb

.assure(store) ⇒ Object



60
61
62
63
64
# File 'lib/entity_snapshot/postgres/postgres.rb', line 60

def self.assure(store)
  if [store.snapshot_class, store.snapshot_interval].include?(nil)
    raise EntityCache::Store::External::Error
  end
end