Ruby on Rails
Wednesday, June 10, 2015
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 https://www.digitalocean.com/community/tutorials/how-to-setup-ruby-on-rails-with-postgres )
There are three non-master branches on that project:
- is close but doesn't work. This is close to what I want to get working. Can anyone help me get this branch working?
- works but introduces an intermediate subclass
- puts the 'order by' directly in the mode. Works but requires change to each subclass.
Again, can anyone help me to make the changes to get the branch at
Working?
Thanks very much in advance,
Ruby
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CALBy49SXcyd427KogtLG29OKZszDQHLwh2f-2Yj5CB2Ht8zkQA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment