Skip to content

Commit 8fc879f

Browse files
committed
Fix documentation
1 parent 5dfff23 commit 8fc879f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/dynamoid/finders.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,11 @@ def find_all_by_composite_key(hash_key, options = {})
120120
# field :gender, :string
121121
# field :rank :number
122122
# table :key => :email
123-
# global_secondary_index :hash_key => :age, :range_key => :gender
123+
# global_secondary_index :hash_key => :age, :range_key => :rank
124124
# end
125-
# User.find_all_by_secondary_index(:age => 5, :range => {"rank.lte" => 10})
125+
# # NOTE: the first param and the second param are both hashes,
126+
# # so curly braces must be used on first hash param if sending both params
127+
# User.find_all_by_secondary_index({:age => 5}, :range => {"rank.lte" => 10})
126128
#
127129
# @param [Hash] eg: {:age => 5}
128130
# @param [Hash] eg: {"rank.lte" => 10}

0 commit comments

Comments
 (0)