diff options
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/validations.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index 3ba2f12ac1..7d1661449c 100755 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -8,9 +8,9 @@ module ActiveRecord # end class RecordInvalid < ActiveRecordError attr_reader :record - def initialize(record, *args) + def initialize(record) @record = record - super(*args) + super("Validation failed: #{@record.errors.full_messages.join(", ")}") end end |