grosser/easy_esi — Issue #3: class_inheritable_attribute is deprecated
Author: promisedlandt
Created: 2011-10-25 15:31:34+00:00
State: open

Using Rails 3.1.1, I get the following deprecation warnings:

DEPRECATION WARNING: class_inheritable_attribute is deprecated, please use class_attribute method instead. Notice their behavior are slightly different, so refer to class_attribute documentation first. (called from at /home/blablabla/config/application.rb:8)

I think the offender are in line 62 and following:
```class ActionController::Base
class_inheritable_accessor :esi_enabled

def self.enable_esi
self.esi_enabled = true
after_filter :render_esi
end
```