Exception: ActiveLayer::RecordInvalidError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ActiveLayer::RecordInvalidError
- Defined in:
- lib/active_layer/persistence.rb
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(record) ⇒ RecordInvalidError
constructor
A new instance of RecordInvalidError.
Constructor Details
#initialize(record) ⇒ RecordInvalidError
Returns a new instance of RecordInvalidError.
63 64 65 66 |
# File 'lib/active_layer/persistence.rb', line 63 def initialize(record) @record = record super(@record.errors..join(", ")) end |
Instance Attribute Details
#record ⇒ Object (readonly)
Returns the value of attribute record.
62 63 64 |
# File 'lib/active_layer/persistence.rb', line 62 def record @record end |