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.

This project is archived and is in readonly mode.

Controllers unable to use inheritable_attribute

#4085

Controllers in Rails 3 are unable to use inheritable attributes because they subclass ActionController::Metal, which defines its inherited class method but doesn't call super inside it. Inheritable attributes implementation relies on Class#inherited_with_inheritable_attributes eventually being called, meaning Class instances should always call super if they override inherited.

The solution is to call super in ActionController::Metal.inherited.

Reported by Mislav · March 2nd, 2010 @ 04:35 AM

State: resolved
Milestone: 3.0.2
Assigned to: José Valim José Valim
Importance: Low

Activity

  1. Mislav
    Mislav
    • Tag changed from controller metal actionpack, inheritable_attributes, inheritance to actionpack, controller, inheritable_attributes, inheritance, metal

    March 2nd, 2010 @ 04:35 AM

  2. Mislav
    Mislav
    • Tag changed from actionpack, controller, inheritable_attributes, inheritance, metal to actionpack, controller, inheritable_attributes, inheritance, metal, rails3

    March 2nd, 2010 @ 06:12 AM

  3. José Valim
    José Valim
    • Assigned user set to José Valim
    • State changed from new to resolved
    • Milestone cleared.

    March 3rd, 2010 @ 08:26 AM

  4. Repository
  5. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to Low

    October 15th, 2010 @ 11:01 PM