On Saturday, March 1, 2014 10:31:44 AM UTC-8, Nels Nelson wrote: > > > On Saturday, March 1, 2014 11:42:09 AM UTC-6, Jeremy Evans wrote: > >> http://sequel.jeremyevans.net/rdoc/files/doc/association_basics_rdoc.html, >> look under Column Naming Conflict Options. >> > > Oh, one more thing... What if I am trying to do something like > > module Z > class Object > many_to_many :stuff, :class => 'Stuff', :join_table => > :objects_to_stuff, :left_key => :object_id, :right_key => :stuff_id > end > end > > How do I specify to which key the :key_method option should refer? Is it > as simple as adding, :left_key_method => :obj_id? > > With many_to_many, you don't need an option if the keys with bad names are in the join table, since methods are not called for that.
Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/groups/opt_out.
