public
Rubygem
Description: Extras for DataMapper, including bridges to DataObjects::Migrations and Merb::DataMapper
Homepage: http://datamapper.org
Clone URL: git://github.com/sam/dm-more.git
don't use get if query has an array of keys, only when there is a single 
key value
monki (author)
Wed Jul 23 16:00:25 -0700 2008
commit  e4c163bfdd6659652c85f5f796ed6b7a2d757878
tree    ba2d413c3ba819a18a9a01bb583ceaa675527599
parent  156777f1be1c8ddf832dd73f1a82bc1537b782e9
...
177
178
179
180
 
 
181
182
183
...
177
178
179
 
180
181
182
183
184
0
@@ -177,7 +177,8 @@ module DataMapper
0
           view_request(query)
0
         elsif query.conditions.length == 1 &&
0
               query.conditions.first[0] == :eql &&
0
- query.conditions.first[1].key?
0
+ query.conditions.first[1].key? &&
0
+ !query.conditions.first[2].is_a?(Array)
0
           get_request(query)
0
         else
0
           ad_hoc_request(query)

Comments

    No one has commented yet.