Exception: Her::RecordInvalid
- Defined in:
- lib/her/exceptions/record_invalid.rb
Instance Method Summary collapse
-
#initialize(errors) ⇒ RecordInvalid
constructor
A new instance of RecordInvalid.
Constructor Details
#initialize(errors) ⇒ RecordInvalid
Returns a new instance of RecordInvalid.
3 4 5 6 |
# File 'lib/her/exceptions/record_invalid.rb', line 3 def initialize(errors) = errors.map{ |field, | [field, ].join(' ') }.join(', ') super() end |