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:
parent
ed5c938fa3
commit
0093dafd80
1 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
require 'active_support/core_ext/class/attribute'
|
||||||
|
|
||||||
module ActionController
|
module ActionController
|
||||||
module ConditionalGet
|
module ConditionalGet
|
||||||
extend ActiveSupport::Concern
|
extend ActiveSupport::Concern
|
||||||
|
@ -5,7 +7,10 @@ module ActionController
|
||||||
include RackDelegation
|
include RackDelegation
|
||||||
include Head
|
include Head
|
||||||
|
|
||||||
included { cattr_accessor(:etaggers) { Array.new } }
|
included do
|
||||||
|
class_attribute :etaggers
|
||||||
|
self.etaggers = []
|
||||||
|
end
|
||||||
|
|
||||||
module ClassMethods
|
module ClassMethods
|
||||||
# Allows you to consider additional controller-wide information when generating an etag.
|
# Allows you to consider additional controller-wide information when generating an etag.
|
||||||
|
|
Loading…
Reference in a new issue