Permalink
Browse files

Ruby 1.9.2 compatability

  • Loading branch information...
1 parent 440db7c commit ec722e24d7d0e156a5363beb99eecda4ce2aa11d @jweiss committed Aug 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rocking_chair/view.rb
@@ -210,7 +210,7 @@ def filter_items_not_in_range(attribute, start_key, end_key)
end
def filter_items_by_key_in_attribute_group(attribute)
- filter_key = (options['key'] || options['startkey']).to_s
+ filter_key = [options['key'] || options['startkey']].flatten.first.to_s
@keys = keys.select do |key|
document = ruby_store[key]
document_attribute = RockingChair::Helper.access(attribute, document)

0 comments on commit ec722e2

Please sign in to comment.