1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use class_attribute so we dont bleed

This commit is contained in:
David Heinemeier Hansson 2012-08-29 15:36:11 -05:00
parent ed5c938fa3
commit 0093dafd80

View file

@ -1,3 +1,5 @@
require 'active_support/core_ext/class/attribute'
module ActionController
module ConditionalGet
extend ActiveSupport::Concern
@ -5,7 +7,10 @@ module ActionController
include RackDelegation
include Head
included { cattr_accessor(:etaggers) { Array.new } }
included do
class_attribute :etaggers
self.etaggers = []
end
module ClassMethods
# Allows you to consider additional controller-wide information when generating an etag.