lib/ultra_settings.rb in ultra_settings-1.0.0 vs lib/ultra_settings.rb in ultra_settings-1.0.1
- old
+ new
@@ -27,10 +27,11 @@
module UltraSettings
VALID_NAME__PATTERN = /\A[a-z_][a-zA-Z0-9_]*\z/
@configurations = {}
@mutex = Mutex.new
+ @runtime_settings = nil
class << self
# Adds a configuration to the root namespace. The configuration will be
# available as a method on the UltraSettings module with the provide name.
#
@@ -158,10 +159,10 @@
# Get the object to use for runtime settings.
#
# @return [Object, nil]
# @api private
def __runtime_settings__
- @runtime_settings ||= nil
+ @runtime_settings
end
# Explicitly set setting values within a block. This is useful for testing
# or other situations where you want hard code a specific set of values.
#