Skip to content

Commit

Permalink
use @ instead of @@
Browse files Browse the repository at this point in the history
  • Loading branch information
oreoshake committed Aug 18, 2016
1 parent 2b06ada commit 7abe764
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/secure_headers/configuration.rb
Expand Up @@ -7,8 +7,6 @@ class Configuration
class NotYetConfiguredError < StandardError; end
class IllegalPolicyModificationError < StandardError; end
class << self
@@appends = {}

# Public: Set the global default configuration.
#
# Optionally supply a block to override the defaults set by this library.
Expand Down Expand Up @@ -49,12 +47,14 @@ def get(name = DEFAULT_CONFIG)
end

def named_appends(name)
@@appends[name]
@appends ||= {}
@appends[name]
end

def named_append(name, target = nil, &block)
@appends ||= {}
raise "Provide a configuration block" unless block_given?
@@appends[name] = block
@appends[name] = block
end

private
Expand Down

0 comments on commit 7abe764

Please sign in to comment.