diff options
author | Carl Lerche <carllerche@mac.com> | 2010-04-02 20:12:50 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-04-02 20:13:09 -0700 |
commit | 386b7bfd9d78a6d8c8bc7cc4a310df806ad0ba57 (patch) | |
tree | 0e2089dcbb05cbf9656e92927f30bdaccb0cf52e /activerecord/lib | |
parent | b29e89368841869c92d706addddd09f436a3ea2f (diff) | |
download | rails-386b7bfd9d78a6d8c8bc7cc4a310df806ad0ba57.tar.gz rails-386b7bfd9d78a6d8c8bc7cc4a310df806ad0ba57.tar.bz2 rails-386b7bfd9d78a6d8c8bc7cc4a310df806ad0ba57.zip |
Remove an unused argument
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/associations.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 7406daf837..40022a614a 100755 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -1493,14 +1493,13 @@ module ActiveRecord # The +extra_conditions+ parameter, which is not used within the main # Active Record codebase, is meant to allow plugins to define extra # finder conditions. - def configure_dependency_for_has_many(reflection, extra_conditions = nil) + def configure_dependency_for_has_many(reflection) if reflection.options.include?(:dependent) # Add polymorphic type if the :as option is present dependent_conditions = [] dependent_conditions << "#{reflection.primary_key_name} = \#{record.#{reflection.name}.send(:owner_quoted_id)}" dependent_conditions << "#{reflection.options[:as]}_type = '#{base_class.name}'" if reflection.options[:as] dependent_conditions << sanitize_sql(reflection.options[:conditions], reflection.table_name) if reflection.options[:conditions] - dependent_conditions << extra_conditions if extra_conditions dependent_conditions = dependent_conditions.collect {|where| "(#{where})" }.join(" AND ") dependent_conditions = dependent_conditions.gsub('@', '\@') case reflection.options[:dependent] |