Method: Sequel::Plugins::StaticCache::InstanceMethods#before_destroy

Defined in:
lib/sequel/plugins/static_cache.rb

#before_destroyObject

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



302
303
304
305
# File 'lib/sequel/plugins/static_cache.rb', line 302

def before_destroy
  cancel_action("modifying model objects that use the static_cache plugin is not allowed") unless model.static_cache_allow_modifications?
  super
end