method
config_accessor
v3.1.0 -
Show latest stable
- 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