This project is archived and is in readonly mode.

#4085 ✓resolved
Mislav

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

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

Pages