Flowdock
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.