Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added has_and_belongs_to_many reification #771

Merged
merged 1 commit into from
Apr 26, 2016

Commits on Apr 18, 2016

  1. Added has_and_belongs_to_many reification

    HABTM associations are saved in the version_assocations table
    with the foreign_key_name set to the association name. They are
    saved if either the associated model is being paper trailed, or
    if the option join_tables: [:association_name] is passed to the
    has_paper_trail declaration. If the option is passed but the
    associated model is not paper trailed, only the join model will
    be saved. This means reification of HABTM would reify the
    associated objects but in their current state. If the associated
    model is paper trailed, this option does nothing, and the version
    of the model at the time is reified.
    Sam Boylett committed Apr 18, 2016
    Configuration menu
    Copy the full SHA
    8b528ca View commit details
    Browse the repository at this point in the history