class User include DataMapper::Resource property :id, Serial end
User.create User.first #=> works User.get(1) #=> works User.get("1") #=> works # Switch to Ruby 2.0.0+ User.get("1") #=> does NOT work # Why? -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To unsubscribe from this group and stop receiving emails from it, send an email to datamapper+unsubscr...@googlegroups.com. To post to this group, send email to datamapper@googlegroups.com. Visit this group at http://groups.google.com/group/datamapper. For more options, visit https://groups.google.com/d/optout.