configure()
Configure values from within the passed block.
require "active_support/configurable" class User include ActiveSupport::Configurable end User.allowed_access # => nil User.configure do |config| config.allowed_access = true end User.allowed_access # => true
# File activesupport/lib/active_support/configurable.rb, line 73 def configure yield config end