diff --git a/README b/README.rdoc similarity index 100% rename from README rename to README.rdoc diff --git a/lib/grouped_scope/has_many_association.rb b/lib/grouped_scope/has_many_association.rb index 32e3b71..82785d0 100644 --- a/lib/grouped_scope/has_many_association.rb +++ b/lib/grouped_scope/has_many_association.rb @@ -11,10 +11,6 @@ def construct_sql_with_group_scope if @reflection.options[:grouped_scope] if @reflection.options[:as] # TODO: Need to add case for polymorphic :as option. - # @finder_sql = - # "#{@reflection.quoted_table_name}.#{@reflection.options[:as]}_id = #{@owner.quoted_id} AND " + - # "#{@reflection.quoted_table_name}.#{@reflection.options[:as]}_type = #{@owner.class.quote_value(@owner.class.base_class.name.to_s)}" - # @finder_sql << " AND (#{conditions})" if conditions else @finder_sql = "#{@reflection.quoted_table_name}.#{@reflection.primary_key_name} IN (#{@owner.group.quoted_ids})" @finder_sql << " AND (#{conditions})" if conditions