diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2013-07-29 09:22:14 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2014-02-20 10:34:52 +0530 |
commit | 9694f86de65e9162a6802a43cdbce9ccc85285b5 (patch) | |
tree | 754cd6e873fadfb4a07f917744038bf830703dfe /activerecord/lib/active_record/locking | |
parent | 25ce856c3ea8beb864994b4b13df07b48574df9b (diff) | |
download | rails-9694f86de65e9162a6802a43cdbce9ccc85285b5.tar.gz rails-9694f86de65e9162a6802a43cdbce9ccc85285b5.tar.bz2 rails-9694f86de65e9162a6802a43cdbce9ccc85285b5.zip |
[Active Record] Renamed private methods create_record and update_record
This is to ensure that they are not accidentally called by the app code.
They are renamed to _create_record and _update_record respectively.
Closes #11645
Diffstat (limited to 'activerecord/lib/active_record/locking')
-rw-r--r-- | activerecord/lib/active_record/locking/optimistic.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/locking/optimistic.rb b/activerecord/lib/active_record/locking/optimistic.rb index 6f54729b3c..4d63b04d9f 100644 --- a/activerecord/lib/active_record/locking/optimistic.rb +++ b/activerecord/lib/active_record/locking/optimistic.rb @@ -66,7 +66,7 @@ module ActiveRecord send(lock_col + '=', previous_lock_value + 1) end - def update_record(attribute_names = @attributes.keys) #:nodoc: + def _update_record(attribute_names = @attributes.keys) #:nodoc: return super unless locking_enabled? return 0 if attribute_names.empty? |