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
246 def before_destroy
247   cancel_action("modifying model objects that use the static_cache plugin is not allowed") unless model.static_cache_allow_modifications?
248   super
249 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
252 def before_save
253   cancel_action("modifying model objects that use the static_cache plugin is not allowed") unless model.static_cache_allow_modifications?
254   super
255 end