Skip to content

Commit

Permalink
Use class_attribute so we dont bleed
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Aug 29, 2012
1 parent ed5c938 commit 0093daf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion actionpack/lib/action_controller/metal/conditional_get.rb
@@ -1,11 +1,16 @@
require 'active_support/core_ext/class/attribute'

module ActionController module ActionController
module ConditionalGet module ConditionalGet
extend ActiveSupport::Concern extend ActiveSupport::Concern


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.
Expand Down

0 comments on commit 0093daf

Please sign in to comment.