norman / ambry

Ambry is a database and ORM replacement for (mostly) static models and small datasets. It provides ActiveModel compatibility, and flexible searching and storage.
http://rubydoc.info/github/norman/ambry/master/frames
MIT License
57 stars 3 forks source link

order stuff and Ruby 1.8 #8

Closed nachokb closed 13 years ago

nachokb commented 13 years ago

Thing is that Mapper uses a Hash to store objects, so order is not guaranteed in Ruby 1.8 (unless explicitly sorted, of course).

We could, perhaps, keep the keys somehow sorted (creation order), but that may be overkill.

Should run ok on all targets now.

nachokb

norman commented 13 years ago

Makes sense. Thanks!