Class: ActiveRecord::ImmutableAttributeError

Inherits:
ActiveRecordError
  • Object
show all
Defined in:
lib/immutable-attribute-plugin/lib/ensures_immutability_of.rb

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ ImmutableAttributeError

Returns a new instance of ImmutableAttributeError.



3
4
5
# File 'lib/immutable-attribute-plugin/lib/ensures_immutability_of.rb', line 3

def initialize(message=nil)
  super(message || 'Cannot modify immutable attribute')
end