I'm transferring a set of ActiveRecord models over to Sequel::Model, and everything has been running pretty smoothly. The only hiccup I've had has been with one find method that required a join.
http://pastie.org/315835 While this works as expected, I find some of the syntax a little distressing, to perform the join, but prevent the results from getting messed up in the response, I had to use a "string".lit in the select. Rating.select("ratings.*".lit).left_outer_join (RatedBusiness, :rating_id => :id) While it works, it feels clunky to me. Is there a more elegant/ standard way to acheive this end with a different syntax? Nothing jumped out at me. Any advice is appreciated! Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en -~----------~----~----~----~------~----~------~--~---
