module Sequel::Plugins::StaticCache::InstanceMethods

  1. lib/sequel/plugins/static_cache.rb
Parent: StaticCache

Methods

Public Instance

  1. before_destroy
  2. before_save

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, line 202
def before_destroy
  return false unless model.static_cache_allow_modifications?
  super
end
before_save ()

Disallowing saving the object unless the :frozen=>false option was used.

[show source]
# File lib/sequel/plugins/static_cache.rb, line 208
def before_save
  return false unless model.static_cache_allow_modifications?
  super
end