[Rails] making ActiveRecord::Base sort by id

2015-06-10 Thread Ruby Railhead
Hello, I'm trying to mix in a module so that AR::Base will sort all record by ID by default. I've worked up a repo with a few methods of doing things similar to this, but I can't get this working as I want (I started with the rails project from

[Rails] Re: ActiveRecord and consistent timestamps in transactions

2015-05-26 Thread Ruby Railhead
at 6:58:35 AM UTC+1, Ruby Railhead wrote: Idea 3: Subclass ActiveRecord::Base (to say ActiveRecordLocal) and mix in the modules mentioned above into this class. Thoughts: This makes is clearer that when you're using ActiveRecordLocal, you're not getting the stock ActiveRecord::Base

[Rails] ActiveRecord and consistent timestamps in transactions

2015-05-20 Thread Ruby Railhead
Hello, All: I am grappling with an interesting problem that I can't believe I'm the first to tackle. Hoping someone has covered this ground before, or is experienced enough to give good suggestions, and can suggest a reasonable path forward. The issue is related to transactions and