Class: ActiveRecord::ImmutableAttributeError
- Inherits:
-
ActiveRecordError
- Object
- ActiveRecordError
- ActiveRecord::ImmutableAttributeError
- Defined in:
- lib/immutable-attribute-plugin/lib/ensures_immutability_of.rb
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ ImmutableAttributeError
constructor
A new instance of ImmutableAttributeError.
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(=nil) super( || 'Cannot modify immutable attribute') end |