search for: dishtagging

Displaying 1 result from an estimated 1 matches for "dishtagging".

2010 Feb 14
2
has_many :through eager loading only loading one record
.... Here are the models (note set_table_name for a legacy schema): class Tag < ActiveRecord::Base set_table_name ''tag'' end class DishTag < Tag has_many :dish_taggings, :foreign_key => ''tag_id'' has_many :dishes, :through => :dish_taggings end class DishTagging < ActiveRecord::Base set_table_name ''dish_tag'' belongs_to :dish belongs_to :dish_tag, :foreign_key => ''tag_id'' end class Dish < ActiveRecord::Base set_table_name ''dish'' has_many :dish_taggings, :foreign_key => ''tag_id&...