| Module | Sequel::Plugins::StaticCache::InstanceMethods |
| In: |
lib/sequel/plugins/static_cache.rb
|
Disallowing destroying the object unless the frozen: false option was used.
# File lib/sequel/plugins/static_cache.rb, line 232
232: def before_destroy
233: cancel_action("modifying model objects that use the static_cache plugin is not allowed") unless model.static_cache_allow_modifications?
234: super
235: end
Disallowing saving the object unless the frozen: false option was used.
# File lib/sequel/plugins/static_cache.rb, line 238
238: def before_save
239: cancel_action("modifying model objects that use the static_cache plugin is not allowed") unless model.static_cache_allow_modifications?
240: super
241: end