Exception: MotionDataWrapper::RecordNotSaved
- Inherits:
-
StandardError
- Object
- StandardError
- MotionDataWrapper::RecordNotSaved
- Defined in:
- lib/motion_data_wrapper/errors/record_not_saved.rb
Instance Method Summary collapse
-
#initialize(record) ⇒ RecordNotSaved
constructor
A new instance of RecordNotSaved.
Constructor Details
#initialize(record) ⇒ RecordNotSaved
Returns a new instance of RecordNotSaved.
4 5 6 7 8 |
# File 'lib/motion_data_wrapper/errors/record_not_saved.rb', line 4 def initialize(record) @record = record @errors = @record.errors super(@errors.map { |k,v| "#{k} #{v}"}.join(', ')) end |