Exception: OceanDynamo::RecordInvalid
- Inherits:
-
DynamoError
- Object
- StandardError
- DynamoError
- OceanDynamo::RecordInvalid
- Defined in:
- lib/ocean-dynamo/exceptions.rb
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#initialize(record) ⇒ RecordInvalid
constructor
:nodoc:.
Constructor Details
#initialize(record) ⇒ RecordInvalid
:nodoc:
23 24 25 26 27 |
# File 'lib/ocean-dynamo/exceptions.rb', line 23 def initialize(record) # :nodoc: @record = record errors = @record.errors..join(", ") super(I18n.t(:"#{@record.class.i18n_scope}.errors.messages.record_invalid", :errors => errors, :default => :"errors.messages.record_invalid")) end |
Instance Attribute Details
#record ⇒ Object (readonly)
:nodoc:
22 23 24 |
# File 'lib/ocean-dynamo/exceptions.rb', line 22 def record @record end |