module Sequel::Plugins::StaticCache::InstanceMethods
Public Instance Methods
Source
# File lib/sequel/plugins/static_cache.rb 289 def before_destroy 290 cancel_action("modifying model objects that use the static_cache plugin is not allowed") unless model.static_cache_allow_modifications? 291 super 292 end
Disallowing destroying the object unless the frozen: false option was used.
Calls superclass method
Source
# File lib/sequel/plugins/static_cache.rb 295 def before_save 296 cancel_action("modifying model objects that use the static_cache plugin is not allowed") unless model.static_cache_allow_modifications? 297 super 298 end
Disallowing saving the object unless the frozen: false option was used.
Calls superclass method