Exception: ActiveGroonga::RecordInvalid
- Defined in:
- lib/active_groonga/validations.rb
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(record) ⇒ RecordInvalid
constructor
A new instance of RecordInvalid.
Constructor Details
#initialize(record) ⇒ RecordInvalid
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
#record ⇒ Object (readonly)
Returns the value of attribute record.
18 19 20 |
# File 'lib/active_groonga/validations.rb', line 18 def record @record end |