diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-09-25 23:34:55 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-09-25 23:34:55 -0300 |
commit | a0de04fce28c386e695935208c910a4b5d1b0748 (patch) | |
tree | 0686dfd6b50958198047b43212abc5900d87c51c /activerecord | |
parent | 06abd94b39e57d6826bd9381d734995c5811305b (diff) | |
parent | 0383db02c1399eed5b9ee61b6971a07801e561d3 (diff) | |
download | rails-a0de04fce28c386e695935208c910a4b5d1b0748.tar.gz rails-a0de04fce28c386e695935208c910a4b5d1b0748.tar.bz2 rails-a0de04fce28c386e695935208c910a4b5d1b0748.zip |
Merge pull request #21773 from amitsuroliya/marked_as_readonly
Correcting `ActiveRecord::ReadOnlyRecord` Error Message [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index 79bd5c55d3..eb53a18f0f 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -713,7 +713,7 @@ module ActiveRecord # # users = User.readonly # users.first.save - # => ActiveRecord::ReadOnlyRecord: ActiveRecord::ReadOnlyRecord + # => ActiveRecord::ReadOnlyRecord: User is marked as readonly def readonly(value = true) spawn.readonly!(value) end |