Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Aug 7, 2012
  1. @ofavre

    accepts_nested_attributes_for + :finder_sql => parent_id included

    ofavre authored
    When using accepts_nested_attributes_for on an association that uses
    :finder_sql, the "#{}_id" column gets
    included in the generated SQL query.
    The object id suffices in itself, there is no need to include the parent
    id, which doesn't exist, as the association is synthetic.
    There is no need to even have a valid path from a Host to the
    LookupValue: if the LookupValue references the Host name, the former
    should be listed in the latter
    (hence many :through associations cannot do).
        Host -> Puppetclass -> Lookup key -> Lookup value
Something went wrong with that request. Please try again.