diff options
author | Sergey Nartimov <just.lest@gmail.com> | 2011-12-21 22:00:55 +0300 |
---|---|---|
committer | Sergey Nartimov <just.lest@gmail.com> | 2011-12-21 22:00:55 +0300 |
commit | 9add7608f1acaa68b025470e7a38901d7e6161ca (patch) | |
tree | 19436d8de294aeb909edee6909f321f4a68d398e /activerecord/lib/active_record/locking | |
parent | abdb10502294dfb7bd76590f18e6517f9713a9b1 (diff) | |
download | rails-9add7608f1acaa68b025470e7a38901d7e6161ca.tar.gz rails-9add7608f1acaa68b025470e7a38901d7e6161ca.tar.bz2 rails-9add7608f1acaa68b025470e7a38901d7e6161ca.zip |
remove deprecated set and original methods for table_name, primary_key, etc
Diffstat (limited to 'activerecord/lib/active_record/locking')
-rw-r--r-- | activerecord/lib/active_record/locking/optimistic.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/activerecord/lib/active_record/locking/optimistic.rb b/activerecord/lib/active_record/locking/optimistic.rb index ce0a165660..7815889b47 100644 --- a/activerecord/lib/active_record/locking/optimistic.rb +++ b/activerecord/lib/active_record/locking/optimistic.rb @@ -144,26 +144,18 @@ module ActiveRecord lock_optimistically && columns_hash[locking_column] end + # Set the column to use for optimistic locking. Defaults to +lock_version+. def locking_column=(value) @original_locking_column = @locking_column if defined?(@locking_column) @locking_column = value.to_s end - # Set the column to use for optimistic locking. Defaults to +lock_version+. - def set_locking_column(value = nil, &block) - deprecated_property_setter :locking_column, value, block - end - # The version column used for optimistic locking. Defaults to +lock_version+. def locking_column reset_locking_column unless defined?(@locking_column) @locking_column end - def original_locking_column #:nodoc: - deprecated_original_property_getter :locking_column - end - # Quote the column name used for optimistic locking. def quoted_locking_column connection.quote_column_name(locking_column) |