search results

  1. Eager loading is supported with polymorphic associations. class Address ... Use it only if that name can’t be inferred from the association name. So has_many : ...
    api.rubyonrails.org/.../Associations/​ClassMethods.html - Cached
  2. has_many with class_name in polymorphic associations. up vote 0 down vote favorite. ... Rails, has_many polymorphic association to one model. 0. Rails ...
    stackoverflow.com/questions/15269802/​has-many-with-class... - Cached
  3. ... Specifies the source association name used by has_many : ... marker, :polymorphic => true end class Person ActiveRecord::Base has_many :markings, :as => : ...
    blog.hasmanythrough.com/2006/4/3/​polymorphic-through - Cached
  4. A slightly more advanced twist on associations is the polymorphic association. ... has_many association, the declaring class ... association name for a has_many : ...
    guides.rubyonrails.org/association_​basics.html - Cached
  5. I\'ve then added has_many :through associations for ... instead of just the actual class name. ... Retrieve model from polymorphic association via has_many through ...stackoverflow.com/questions/14103857/​rails-class... - Cached
  6. I have read many articles about polymorphic associations in Rails and also ... class_name => \ "Person\" has_many :leases, class_name => \"Document\" end Where do you ...
    ruby.11.x6.nabble.com/How-to-model-a-​polymorphic... - Cached
  7. Use it only if that name can’t be inferred from the association name. So has_many: ... Polymorphic has_many within inherited class gotcha. Given I have following ...
    apidock.com/.../Associations/​ClassMethods/has_many - Cached
  8. Now the rails docs refer to the as keyword parameter to has_one and has_many as specifying a “polymorphic ... for the name of the association: class ...
    robots.thoughtbot.com/...with-rails-​polymorphic-associations - Cached
  9. ... I have implemented double polymorphic associations in the has_many_polymorphs plugin. ... by evaluating its bare class name, or another way) ...
    blog.evanweaver.com/2006/...double-​polymorphic-associations - Cached
  10. Polymorphic associations can be a ... say articles we’d create a Comment model and have a has_many / belongs_to ... This field will hold the class name of the ...
    asciicasts.com/episodes/154-polymorphic-​association - Cached