Exception: ActiveGroonga::RecordInvalid — activegroonga - ラングバ

Exception: ActiveGroonga::RecordInvalid

Inherits:
Error
  • Object
show all
Defined in:
lib/active_groonga/validations.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

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.full_messages.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