aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/errors.rb
diff options
context:
space:
mode:
authorRecursive Madman <recursive.madman@gmx.de>2014-11-26 15:05:34 +0100
committerRecursive Madman <recursive.madman@gmx.de>2014-11-26 15:07:35 +0100
commit59190c037999d302dd95b1f53f7049c2cec3f7b9 (patch)
treea70eb7939fd09259e47a11ac57ef7c077d2c4848 /activerecord/lib/active_record/errors.rb
parentcb23d6a5ee34f6f7de15174cbd7b2920d6f4c956 (diff)
downloadrails-59190c037999d302dd95b1f53f7049c2cec3f7b9.tar.gz
rails-59190c037999d302dd95b1f53f7049c2cec3f7b9.tar.bz2
rails-59190c037999d302dd95b1f53f7049c2cec3f7b9.zip
various error classes: added newlines & removed :nodoc: flag from public attribute.
Diffstat (limited to 'activerecord/lib/active_record/errors.rb')
-rw-r--r--activerecord/lib/active_record/errors.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/errors.rb b/activerecord/lib/active_record/errors.rb
index ca4fede7a2..14819aab54 100644
--- a/activerecord/lib/active_record/errors.rb
+++ b/activerecord/lib/active_record/errors.rb
@@ -196,6 +196,7 @@ module ActiveRecord
# offending attribute.
class AttributeAssignmentError < ActiveRecordError
attr_reader :exception, :attribute
+
def initialize(message, exception, attribute)
super(message)
@exception = exception
@@ -208,6 +209,7 @@ module ActiveRecord
# objects, each corresponding to the error while assigning to an attribute.
class MultiparameterAssignmentErrors < ActiveRecordError
attr_reader :errors
+
def initialize(errors)
@errors = errors
end