Module: SharedBehaviour::Immutable

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

Constant Summary collapse

MUTABLE =
%w[deprecated_at updated_at]

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


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

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