Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

This project is archived and is in readonly mode.

Don't share attribute method matchers between classes

#3216

Currently, any class that includes ActiveModel::AttributeMethods will share its attribute matchers with another class including the AttributeMethods module.

This patch fixes this by using an inheritable_reader/writer for attribute_method_matchers in ActiveModel::AttributeMethods.

Reported by Sam Pohlenz · September 16th, 2009 @ 11:23 AM

State: resolved
Milestone: 3.0.2
Assigned to: josh josh
Importance: none

Activity

  1. Sam Pohlenz
    Sam Pohlenz
    • Tag changed from activemodel to activemodel, patch

    September 16th, 2009 @ 11:04 PM

  2. CancelProfileIsBroken
    CancelProfileIsBroken
    • Tag changed from activemodel, patch to activemodel, bugmash, patch

    September 25th, 2009 @ 12:06 PM

  3. josh
    josh
    • Milestone cleared.
    • State changed from new to open
    • Assigned user set to josh

    October 7th, 2009 @ 05:22 AM

  4. josh
    josh
    • State changed from open to committed

    October 7th, 2009 @ 03:29 PM

  5. Repository
    Repository
    • State changed from committed to resolved

    (from [f8e91bda9c171dd0c31dbea95ba4e9ced4ee2547]) Don't share attribute matchers between classes [#3216 Don't share attribute method matchers between classes state:resolved]

    Allows separate models that include ActiveModel::AttributeMethods to
    use different sets of attribute matchers.

    Signed-off-by: Joshua Peek josh@joshpeek.com
    http://github.com/rails/rails/commit/f8e91bda9c171dd0c31dbea95ba4e9...

    October 7th, 2009 @ 03:57 PM

  6. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to

    October 15th, 2010 @ 11:01 PM