This project is archived and is in readonly mode.
Controllers unable to use inheritable_attribute
Reported by Mislav | March 2nd, 2010 @ 04:35 AM | in 3.0.2
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
.
Comments and changes to this ticket
-
Mislav March 2nd, 2010 @ 04:35 AM
- Tag changed from controller metal actionpack, inheritable_attributes, inheritance to actionpack, controller, inheritable_attributes, inheritance, metal
-
Mislav March 2nd, 2010 @ 06:12 AM
- Tag changed from actionpack, controller, inheritable_attributes, inheritance, metal to actionpack, controller, inheritable_attributes, inheritance, metal, rails3
-
José Valim March 3rd, 2010 @ 08:26 AM
- Assigned user set to José Valim
- State changed from new to resolved
- Milestone cleared.
-
Repository March 3rd, 2010 @ 08:41 AM
(from [b4b0c4cb4154984c89a3bbbcd9970a00d8bd3cb5]) Add missing super call in AC::Metal. [#4085 status:resolved] http://github.com/rails/rails/commit/b4b0c4cb4154984c89a3bbbcd9970a...
-
Jeremy Kemper October 15th, 2010 @ 11:01 PM
- Milestone set to 3.0.2
- Importance changed from to Low
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Referenced by
- 4085 Controllers unable to use inheritable_attribute (from [b4b0c4cb4154984c89a3bbbcd9970a00d8bd3cb5]) Add mis...