Skip to content

Commit

Permalink
Ensure @config is not a reserved instance variable in controllers. [#…
Browse files Browse the repository at this point in the history
…5342 state:resolved]
  • Loading branch information
josevalim committed Aug 11, 2010
1 parent 1fbcd5f commit e1b85c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activesupport/lib/active_support/configurable.rb
Expand Up @@ -9,7 +9,7 @@ module Configurable

module ClassMethods
def config
@config ||= ActiveSupport::InheritableOptions.new(superclass.respond_to?(:config) ? superclass.config : {})
@_config ||= ActiveSupport::InheritableOptions.new(superclass.respond_to?(:config) ? superclass.config : {})
end

def configure
Expand All @@ -30,7 +30,7 @@ def #{name}=(value); config.#{name} = value; end
end

def config
@config ||= ActiveSupport::InheritableOptions.new(self.class.config)
@_config ||= ActiveSupport::InheritableOptions.new(self.class.config)
end
end
end

0 comments on commit e1b85c3

Please sign in to comment.