diff options
author | Emilio Tagua <miloops@gmail.com> | 2009-06-23 17:19:51 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2009-06-23 17:19:51 -0300 |
commit | d587cf37947fe9a58c03eed3372717789b5349f4 (patch) | |
tree | 2ab29a2ad8b43f0a9fea43a50a963c05d879ffe5 /activerecord/lib/active_record/base.rb | |
parent | 3e4452c73f6f7ce2ff197b75d375f66f4a250a03 (diff) | |
download | rails-d587cf37947fe9a58c03eed3372717789b5349f4.tar.gz rails-d587cf37947fe9a58c03eed3372717789b5349f4.tar.bz2 rails-d587cf37947fe9a58c03eed3372717789b5349f4.zip |
Removed old commented code
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index e04ec54913..32c339b338 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -840,27 +840,6 @@ module ActiveRecord #:nodoc: # # Update all books that match our conditions, but limit it to 5 ordered by date # Book.update_all "author = 'David'", "title LIKE '%Rails%'", :order => 'created_at', :limit => 5 def update_all(updates, conditions = nil, options = {}) - # sql = "UPDATE #{quoted_table_name} SET #{sanitize_sql_for_assignment(updates)} " - - # scope = scope(:find) - - # select_sql = "" - # add_conditions!(select_sql, conditions, scope) - - # if options.has_key?(:limit) || (scope && scope[:limit]) - # # Only take order from scope if limit is also provided by scope, this - # # is useful for updating a has_many association with a limit. - # add_order!(select_sql, options[:order], scope) - - # add_limit!(select_sql, options, scope) - # sql.concat(connection.limited_update_conditions(select_sql, quoted_table_name, connection.quote_column_name(primary_key))) - # else - # add_order!(select_sql, options[:order], nil) - # sql.concat(select_sql) - # end - # p sql - - # connection.update(sql, "#{name} Update") scope = scope(:find) arel = arel_table |