Skip to content

Commit

Permalink
Applied patch from pull request ryanb#966
Browse files Browse the repository at this point in the history
  • Loading branch information
avokhmin committed Mar 14, 2014
1 parent f2f40c7 commit fe1089b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/cancan/model_adapters/active_record_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ def tableized_conditions(conditions, model_class = @model_class)
value.delete(k)
nested[k] = v
else
name = model_class.reflect_on_association(name).table_name.to_sym
result_hash[name] = value
result_hash[model_class.reflect_on_association(name).table_name.to_sym] = value
end
nested
end
Expand Down

0 comments on commit fe1089b

Please sign in to comment.