diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-12-28 14:33:56 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-12-28 14:33:56 +0530 |
commit | 5156507e13bb17f1852576acfd921a39e06de175 (patch) | |
tree | e8ebf0a849daa02270da9797cbb9b0846e370315 /activerecord/lib/active_record/base.rb | |
parent | b95cc72429f83304b8e882c3637dfb3135a571ed (diff) | |
download | rails-5156507e13bb17f1852576acfd921a39e06de175.tar.gz rails-5156507e13bb17f1852576acfd921a39e06de175.tar.bz2 rails-5156507e13bb17f1852576acfd921a39e06de175.zip |
Remove locking related unused code
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index da1341a846..30f0207aab 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1702,14 +1702,6 @@ module ActiveRecord #:nodoc: o.is_a?(Array) && o.all?{|obj| obj.is_a?(String)} end - # The optional scope argument is for the current <tt>:find</tt> scope. - # The <tt>:lock</tt> option has precedence over a scoped <tt>:lock</tt>. - def add_lock!(sql, options, scope = :auto) - scope = scope(:find) if :auto == scope - options = options.reverse_merge(:lock => scope[:lock]) if scope - connection.add_lock!(sql, options) - end - def type_condition(table_alias=nil) quoted_table_alias = self.connection.quote_table_name(table_alias || table_name) quoted_inheritance_column = connection.quote_column_name(inheritance_column) |