Skip to content

Commit

Permalink
Moving readme into place along with some comment changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
metaskills committed Sep 26, 2008
1 parent 5bb4cc3 commit f25545c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
File renamed without changes.
4 changes: 0 additions & 4 deletions lib/grouped_scope/has_many_association.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f25545c

Please sign in to comment.