diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-30 17:42:17 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-30 17:42:17 -0800 |
commit | d51854a6be66ea39973e8880726be3a17dfbd7b8 (patch) | |
tree | 5b975b7b025ea0e21786b5b1357f44fcf019e37d | |
parent | 7408b6ec842c87644460430827b8ce27e43ccfc7 (diff) | |
download | rails-d51854a6be66ea39973e8880726be3a17dfbd7b8.tar.gz rails-d51854a6be66ea39973e8880726be3a17dfbd7b8.tar.bz2 rails-d51854a6be66ea39973e8880726be3a17dfbd7b8.zip |
stop using splat args when we do not need them
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index 1eb7f04bdf..30cd4f4477 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -162,7 +162,7 @@ module ActiveRecord @arel ||= build_arel end - def custom_join_sql(*joins) + def custom_join_sql(joins) arel = table.select_manager joins.each do |join| @@ -254,7 +254,7 @@ module ActiveRecord stashed_association_joins = joins.grep(ActiveRecord::Associations::ClassMethods::JoinDependency::JoinAssociation) non_association_joins = (joins - association_joins - stashed_association_joins) - custom_joins = custom_join_sql(*non_association_joins) + custom_joins = custom_join_sql(non_association_joins) join_dependency = ActiveRecord::Associations::ClassMethods::JoinDependency.new(@klass, association_joins, custom_joins) |