Exception: ActiveGroonga::RecordInvalid
- Inherits:
-
Error
- Object
- StandardError
- Error
- ActiveGroonga::RecordInvalid
- Defined in:
- lib/active_groonga/validations.rb
Instance Attribute Summary (collapse)
-
- (Object) record
readonly
Returns the value of attribute record.
Instance Method Summary (collapse)
-
- (RecordInvalid) initialize(record)
constructor
A new instance of RecordInvalid.
Constructor Details
- (RecordInvalid) initialize(record)
Returns a new instance of RecordInvalid
19 20 21 22 23 24 |
# File 'lib/active_groonga/validations.rb', line 19 def initialize(record) @record = record errors = @record.errors..join(", ") super(I18n.t("activegroonga.errors.messages.record_invalid", :errors => errors)) end |
Instance Attribute Details
- (Object) record (readonly)
Returns the value of attribute record
18 19 20 |
# File 'lib/active_groonga/validations.rb', line 18 def record @record end |