Method: Sequel::Plugins::StaticCache::InstanceMethods#before_save
- Defined in:
- lib/sequel/plugins/static_cache.rb
#before_save ⇒ Object
Disallowing saving the object unless the frozen: false option was used.
308 309 310 311 |
# File 'lib/sequel/plugins/static_cache.rb', line 308 def before_save cancel_action("modifying model objects that use the static_cache plugin is not allowed") unless model.static_cache_allow_modifications? super end |