My Life.
Hoge.includes(:mago => [:ko => :oya]).where(“oyas.name =?”, “XXX”)
Tagged: Rails3
Posted on May 31, 2012