Skip to content

Commit

Permalink
Be consistent in argument names for 3.2.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
metaskills committed Jun 13, 2012
1 parent 387a131 commit c10e9a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG
@@ -1,5 +1,8 @@


= master = 3.2.1

* Be consistent in argument names for 3.2.6.



= 3.2.0 = 3.2.0


Expand Down
4 changes: 2 additions & 2 deletions lib/grouped_scope/arish/relation/predicate_builer.rb
Expand Up @@ -9,12 +9,12 @@ module PredicateBuilder
end end


module ClassMethods module ClassMethods
def build_from_hash_with_grouped_scope(engine, attributes, default_table, check_column = true) def build_from_hash_with_grouped_scope(engine, attributes, default_table, allow_table_name = true)
attributes.select{ |column, value| GroupedScope::SelfGroupping === value }.each do |column_value| attributes.select{ |column, value| GroupedScope::SelfGroupping === value }.each do |column_value|
column, value = column_value column, value = column_value
attributes[column] = value.arel_table[column.to_s].in(value.ids_sql) attributes[column] = value.arel_table[column.to_s].in(value.ids_sql)
end end
build_from_hash_without_grouped_scope(engine, attributes, default_table, check_column) build_from_hash_without_grouped_scope(engine, attributes, default_table, allow_table_name)
end end


end end
Expand Down

0 comments on commit c10e9a5

Please sign in to comment.