Flowdock
method

config_accessor

Importance_1
v3.0.5 - Show latest stable - 0 notes - Class: ActiveSupport::Configurable::ClassMethods
config_accessor(*names) public

Allows you to add shortcut so that you don’t have to refer to attribute through config. Also look at the example for config to contrast.

  class User
    include ActiveSupport::Configurable
    config_accessor :allowed_access
  end

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