Skip to content
Browse files

add fix to allow search criteria based on hashes fields - needs to be…

… improved
  • Loading branch information...
1 parent a93c88d commit 3e2694e0469599672b1fd5fccf13fe28d1bf4a27 @erishine erishine committed Jul 9, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/active_admin/mongoid/filter_form_builder.rb
View
2 lib/active_admin/mongoid/filter_form_builder.rb
@@ -12,6 +12,8 @@ def default_input_type(method, options = {})
when :float, :decimal
return :numeric
end
+ else # dirty but allows to create filters for hashes
+ return :string
end
end

0 comments on commit 3e2694e

Please sign in to comment.
Something went wrong with that request. Please try again.