diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-22 16:14:37 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-22 16:14:37 -0800 |
commit | 4d31ee1e0e2eccae0c9964214455ff75c647bd7f (patch) | |
tree | f1b8cbda6455ad2403857f9659285efe145490cf /activerecord/lib/active_record/associations/through_association_scope.rb | |
parent | e83d15376d7ca10e20a720727f22cc9cdbbd662c (diff) | |
download | rails-4d31ee1e0e2eccae0c9964214455ff75c647bd7f.tar.gz rails-4d31ee1e0e2eccae0c9964214455ff75c647bd7f.tar.bz2 rails-4d31ee1e0e2eccae0c9964214455ff75c647bd7f.zip |
removing unused variables
Diffstat (limited to 'activerecord/lib/active_record/associations/through_association_scope.rb')
-rw-r--r-- | activerecord/lib/active_record/associations/through_association_scope.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations/through_association_scope.rb b/activerecord/lib/active_record/associations/through_association_scope.rb index bd8e304e99..acddfda924 100644 --- a/activerecord/lib/active_record/associations/through_association_scope.rb +++ b/activerecord/lib/active_record/associations/through_association_scope.rb @@ -16,7 +16,7 @@ module ActiveRecord :readonly => @reflection.options[:readonly] } end - + def construct_create_scope construct_owner_attributes(@reflection) end @@ -51,7 +51,7 @@ module ActiveRecord def construct_select(custom_select = nil) distinct = "DISTINCT " if @reflection.options[:uniq] - selected = custom_select || @reflection.options[:select] || "#{distinct}#{@reflection.quoted_table_name}.*" + custom_select || @reflection.options[:select] || "#{distinct}#{@reflection.quoted_table_name}.*" end def construct_joins(custom_joins = nil) |