Module: Sequel::Plugins::StaticCache::InstanceMethods
- Defined in:
- lib/sequel/plugins/static_cache.rb
Instance Method Summary collapse
-
#before_destroy ⇒ Object
Disallowing destroying the object unless the :frozen=>false option was used.
-
#before_save ⇒ Object
Disallowing saving the object unless the :frozen=>false option was used.
Instance Method Details
#before_destroy ⇒ Object
Disallowing destroying the object unless the :frozen=>false option was used.
225 226 227 228 |
# File 'lib/sequel/plugins/static_cache.rb', line 225 def before_destroy return false unless model.static_cache_allow_modifications? super end |
#before_save ⇒ Object
Disallowing saving the object unless the :frozen=>false option was used.
231 232 233 234 |
# File 'lib/sequel/plugins/static_cache.rb', line 231 def before_save return false unless model.static_cache_allow_modifications? super end |