Method: ActiveSupport::Configurable::ClassMethods#configure
- Defined in:
- lib/active_support/configurable.rb
#configure {|config| ... } ⇒ Object
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
73 74 75 |
# File 'lib/active_support/configurable.rb', line 73 def configure yield config end |