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
Search Repo:
Small fix for create method
djwonk (author)
Sat Jun 21 09:45:25 -0700 2008
markj9 (committer)
Sun Jun 29 12:44:11 -0700 2008
commit  f66d090a857acb6e23cb863356d7b58002a02c4e
tree    37079463559446eb06d4a0ed1f2c004d13b8b251
parent  a285509c9b2b289dcc9031ea934486a578b7be93
...
30
31
32
33
 
34
35
36
...
30
31
32
 
33
34
35
36
0
@@ -30,7 +30,7 @@ module DataMapper
0
       def create(resources)
0
         count = 0
0
         resources.each do |resource|
0
- resource_name = Inflection.underscore(resource.class.name.downcase)
0
+ resource_name = Inflection.underscore(resource.class.name)
0
           result = http_post("/#{resource_name.pluralize}.xml", resource.to_xml)
0
           # TODO: Raise error if cannot reach server
0
           success = result.instance_of?(Net::HTTPCreated)

Comments

    No one has commented yet.