public
Rubygem
Fork of sam/dm-more
Description: Extras for DataMapper, including bridges to DataObjects::Migrations and Merb::DataMapper
Homepage: http://datamapper.org
Clone URL: git://github.com/markj9/dm-more.git
Fixed Inflection underscore (same as before)
djwonk (author)
Sat Jun 21 09:51:01 -0700 2008
markj9 (committer)
Sun Jun 29 12:44:12 -0700 2008
commit  2f658da861a4c11a4e8a355c9b9157da1ae61ab1
tree    8b727f052a741d996583e47c7d12efce25efba60
parent  0e6ed3bdaa2300b8fd6be78039996e63730ecf41
...
56
57
58
59
 
60
61
62
...
184
185
186
187
 
188
189
190
...
56
57
58
 
59
60
61
62
...
184
185
186
 
187
188
189
190
0
@@ -56,7 +56,7 @@ module DataMapper
0
       # IN PROGRESS
0
       # TODO: Need to account for query.conditions (i.e., [[:eql, #<Property:Book:id>, 1]] for books/1)
0
       def read_many(query)
0
- resource_name = Inflection.underscore(query.model.name.downcase)
0
+ resource_name = Inflection.underscore(query.model.name)
0
         case query.conditions
0
         when []
0
           read_set_all(repository, query, resource_name)
0
@@ -184,7 +184,7 @@ module DataMapper
0
       end
0
       
0
       def resource_name_from_model(model)
0
- Inflection.underscore(model.name.downcase)
0
+ Inflection.underscore(model.name)
0
       end
0
       
0
       def resource_name_from_query(query)

Comments

    No one has commented yet.