module Sequel::Plugins::StaticCache::InstanceMethods

Public Instance Methods

before_destroy() click to toggle source

Disallowing destroying the object unless the :frozen=>false option was used.

Calls superclass method
# File lib/sequel/plugins/static_cache.rb, line 208
def before_destroy
  return false unless model.static_cache_allow_modifications?
  super
end
before_save() click to toggle source

Disallowing saving the object unless the :frozen=>false option was used.

Calls superclass method
# File lib/sequel/plugins/static_cache.rb, line 214
def before_save
  return false unless model.static_cache_allow_modifications?
  super
end