Module: ActsAsImmutable::InstanceMethods
- Defined in:
- lib/acts_as_immutable.rb
Instance Method Summary collapse
Instance Method Details
#immutable? ⇒ Boolean
24 25 26 |
# File 'lib/acts_as_immutable.rb', line 24 def immutable? !mutable? end |
#mutable? ⇒ Boolean
18 19 20 21 22 |
# File 'lib/acts_as_immutable.rb', line 18 def mutable? cond = self.class.mutable_condition = self.class. ([:new_records_mutable] && new_record?) || (cond && instance_eval(&cond)) end |