Permalink
Browse files

Fixed simple filter usage of columns_hash

  • Loading branch information...
vihai committed May 29, 2012
1 parent 6aa6964 commit 10a6400336904ab06eace75bf2b1add6aee54829
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/active_rest/controller/filters.rb
@@ -154,8 +154,7 @@ def to_arel_recur(tree)
def apply_simple_filter_to_relation(rel)
params.each do |k,v|
next if k[0] == '_'
-
- next if !rel.klass.columns_hash[k]
+ next if !rel.columns_hash[k]
(attr, rel) = model.nested_attribute(k, rel)
rel = rel.where(attr.eq(v))

0 comments on commit 10a6400

Please sign in to comment.