Public Instance methods
before_destroy()
Disallowing destroying the object unless the frozen: false option was used.
[show source]
# File lib/sequel/plugins/static_cache.rb 302 def before_destroy 303 cancel_action("modifying model objects that use the static_cache plugin is not allowed") unless model.static_cache_allow_modifications? 304 super 305 end
before_save()
Disallowing saving the object unless the frozen: false option was used.
[show source]
# File lib/sequel/plugins/static_cache.rb 308 def before_save 309 cancel_action("modifying model objects that use the static_cache plugin is not allowed") unless model.static_cache_allow_modifications? 310 super 311 end