Exception: ActiveModelPersistence::ObjectNotValidError
- Inherits:
-
ModelError
- Object
- StandardError
- ModelError
- ActiveModelPersistence::ObjectNotValidError
- Defined in:
- lib/active_model_persistence.rb
Overview
Raised when trying to save an invalid object
Instance Method Summary collapse
-
#initialize(invalid_object) ⇒ ObjectNotValidError
constructor
Create a new ObjectNotValidError constructing a message from the invalid object.
Constructor Details
#initialize(invalid_object) ⇒ ObjectNotValidError
Create a new ObjectNotValidError constructing a message from the invalid object
44 45 46 |
# File 'lib/active_model_persistence.rb', line 44 def initialize(invalid_object) super((invalid_object)) end |