diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-11-03 01:41:44 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-11-03 01:41:44 +0530 |
commit | ee917493e451e552fef18367f8bcba2f36080685 (patch) | |
tree | ab1e3b5e4201fddf045aad8c199e1f2c8d7a12b0 /activerecord/lib/active_record | |
parent | 1c3bdfcda4ddb23b69bf00e13cc6120b4ff428dc (diff) | |
download | rails-ee917493e451e552fef18367f8bcba2f36080685.tar.gz rails-ee917493e451e552fef18367f8bcba2f36080685.tar.bz2 rails-ee917493e451e552fef18367f8bcba2f36080685.zip |
copy edits [ci skip]
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/errors.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/errors.rb b/activerecord/lib/active_record/errors.rb index f039c23675..04c0fbfe70 100644 --- a/activerecord/lib/active_record/errors.rb +++ b/activerecord/lib/active_record/errors.rb @@ -201,12 +201,9 @@ module ActiveRecord # relation = Task.all # relation.loaded? # => true # - # # where! will try to mutate the relation, but this will fails because it's loaded - # relation.where!(title: 'TODO') - # # => ActiveRecord::ImmutableRelation - # - # relation.limit!(5) - # # => ActiveRecord::ImmutableRelation + # # Methods which try to mutate a loaded relation fail. + # relation.where!(title: 'TODO') # => ActiveRecord::ImmutableRelation + # relation.limit!(5) # => ActiveRecord::ImmutableRelation class ImmutableRelation < ActiveRecordError end |