diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-11 18:49:01 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-11 18:49:01 +0000 |
commit | ae6a513bd16e6b8bf7adb61384fbc140ca604942 (patch) | |
tree | a1c5567c10ee9bf05437e66c0fdd6dcd1e4dafab /activerecord/lib | |
parent | 0c048e7c6f85913c5288be4d45e31830ddd77e19 (diff) | |
download | rails-ae6a513bd16e6b8bf7adb61384fbc140ca604942.tar.gz rails-ae6a513bd16e6b8bf7adb61384fbc140ca604942.tar.bz2 rails-ae6a513bd16e6b8bf7adb61384fbc140ca604942.zip |
Include the Enumerable module in ActiveRecord::Errors.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2981 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/validations.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb index e8ddf0f3c8..10a6c0fab3 100755 --- a/activerecord/lib/active_record/validations.rb +++ b/activerecord/lib/active_record/validations.rb @@ -17,6 +17,8 @@ module ActiveRecord # Active Record validation is reported to and from this object, which is used by Base#save to # determine whether the object in a valid state to be saved. See usage example in Validations. class Errors + include Enumerable + def initialize(base) # :nodoc: @base, @errors = base, {} end |