Skip to content

Commit

Permalink
Correcting ActiveRecord::ReadOnlyRecord Error Message [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
amitsuroliya committed Sep 26, 2015
1 parent 9b16b49 commit 0383db0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/relation/query_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ def none! # :nodoc:
#
# 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
Expand Down

0 comments on commit 0383db0

Please sign in to comment.