Module: SharedBehaviour::Immutable

Included in:
ProductCriteria
Defined in:
app/models/shared_behaviour/immutable.rb

Constant Summary collapse

MUTABLE =
%w[deprecated_at updated_at].freeze

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
# File 'app/models/shared_behaviour/immutable.rb', line 5

def self.included(base)
  base.class_eval { before_update :save_allowed? }
end