Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ruby 1.9.2 compatability

  • Loading branch information...
commit 10f3b14eec329852b0f78f94221ba128bd46850d 1 parent 61f5778
Jonathan Weiss authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/rocking_chair/view.rb
2  lib/rocking_chair/view.rb
View
@@ -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) || []
Please sign in to comment.
Something went wrong with that request. Please try again.