Flowdock
method

config

Importance_1
v3.2.1 - Show latest stable - 0 notes - Class: ActiveSupport::Configurable
config() public

Reads and writes attributes from a configuration OrderedHash.

require 'active_support/configurable'

class User
  include ActiveSupport::Configurable
end

user = User.new

user.config.allowed_access = true
user.config.level = 1

user.config.allowed_access # => true
user.config.level          # => 1
Show source
Register or log in to add new notes.