Permalink
Browse files

Use class_attribute so we dont bleed

  • Loading branch information...
1 parent ed5c938 commit 0093dafd804c59ea1685cdab2a79b37d63c8dbf0 @dhh dhh committed Aug 29, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 actionpack/lib/action_controller/metal/conditional_get.rb
@@ -1,11 +1,16 @@
+require 'active_support/core_ext/class/attribute'
+
module ActionController
module ConditionalGet
extend ActiveSupport::Concern
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.

0 comments on commit 0093daf

Please sign in to comment.