Class: LittleMapper::Result::RepoFailure
- Inherits:
-
RepoResult
- Object
- RepoResult
- LittleMapper::Result::RepoFailure
- Defined in:
- lib/little_mapper/result/repo_failure.rb
Instance Attribute Summary
Attributes inherited from RepoResult
Instance Method Summary collapse
Methods inherited from RepoResult
Constructor Details
This class inherits a constructor from LittleMapper::Result::RepoResult
Instance Method Details
#after_initialize ⇒ Object
4 5 6 7 8 |
# File 'lib/little_mapper/result/repo_failure.rb', line 4 def after_initialize if object && object.respond_to?(:errors) @messages = object.errors. end end |