Permalink
Browse files

Minor: formatting.

  • Loading branch information...
jnunemaker committed Oct 10, 2012
1 parent aba6884 commit e8ab8049598b6c6b7cef8dd76a1b6356a12fadf7
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/plucky/criteria_hash.rb
@@ -139,7 +139,10 @@ def normalized_key(key)
def normalized_value(parent_key, key, value)
case value
when Array, Set
- value = value.map { |v| Plucky.to_object_id(v) } if object_id?(parent_key)
+ if object_id?(parent_key)
+ value = value.map { |v| Plucky.to_object_id(v) }
+ end
+
if nesting_operator?(key)
value.map { |v| CriteriaHash.new(v, options).to_hash }
elsif parent_key == key

0 comments on commit e8ab804

Please sign in to comment.