diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-29 19:43:07 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-29 19:43:07 +0000 |
commit | 20d29b379767713c64397a28105d1b74f0f36f5f (patch) | |
tree | 4f15147e5e0198d48981fb0835e33f583a92f3c5 /activerecord/lib/active_record/aggregations.rb | |
parent | 1bb208d7e5c7147ed12e1e2fd0cd24b5054eceac (diff) | |
download | rails-20d29b379767713c64397a28105d1b74f0f36f5f.tar.gz rails-20d29b379767713c64397a28105d1b74f0f36f5f.tar.bz2 rails-20d29b379767713c64397a28105d1b74f0f36f5f.zip |
Ruby 1.9 compat: introduce ActiveSupport::FrozenObjectError normalize TypeError vs RuntimeError handling. Closes #10645 [Frederick Cheung]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8510 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/aggregations.rb')
-rw-r--r-- | activerecord/lib/active_record/aggregations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/aggregations.rb b/activerecord/lib/active_record/aggregations.rb index 56c6fb9893..f0f34e9a99 100644 --- a/activerecord/lib/active_record/aggregations.rb +++ b/activerecord/lib/active_record/aggregations.rb @@ -104,7 +104,7 @@ module ActiveRecord # changed through means other than the writer method. # # The immutable requirement is enforced by Active Record by freezing any object assigned as a value object. Attempting to - # change it afterwards will result in a <tt>TypeError</tt>. + # change it afterwards will result in a <tt>ActiveSupport::FrozenObjectError</tt>. # # Read more about value objects on http://c2.com/cgi/wiki?ValueObject and on the dangers of not keeping value objects # immutable on http://c2.com/cgi/wiki?ValueObjectsShouldBeImmutable |