From ee917493e451e552fef18367f8bcba2f36080685 Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Sat, 3 Nov 2012 01:41:44 +0530 Subject: copy edits [ci skip] --- activerecord/lib/active_record/errors.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'activerecord/lib/active_record') 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 -- cgit v1.2.3