Permalink
Browse files

Ruby 1.9.2 compatability

  • Loading branch information...
1 parent 61f5778 commit 10f3b14eec329852b0f78f94221ba128bd46850d @jweiss committed Aug 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rocking_chair/view.rb
@@ -218,7 +218,7 @@ def filter_items_by_key_in_attribute_group(attribute)
end
def filter_items_by_query_document_attributes(belongs_to)
- filter_key = options['key'] || options['startkey']
+ filter_key = [options['key'] || options['startkey']].flatten.first
filtering_document = ruby_store[filter_key.to_s]
reverse_foreign_key = foreign_key_array_id(design_document_name)
@keys = RockingChair::Helper.access(reverse_foreign_key, filtering_document) || []

0 comments on commit 10f3b14

Please sign in to comment.