Where I think that config.x.rails_auth.acl = Rails::Auth::ACL.from_yaml(... should be config.x.acl = Rails::Auth::ACL.from_yaml(... (without the rails_auth) as later you are doing config.middleware.use Rails::Auth::ACL::Middleware, acl: config.x.acl.
Following configuration method is not working, https://github.com/square/rails-auth/wiki/Rails-Usage#user-content-configapplicationrb.
It seems to me that the reason is a wrong variable name around https://github.com/square/rails-auth/blob/master/lib/rails/auth/config_builder.rb#L9:
Where I think that
config.x.rails_auth.acl = Rails::Auth::ACL.from_yaml(...
should beconfig.x.acl = Rails::Auth::ACL.from_yaml(...
(without therails_auth
) as later you are doingconfig.middleware.use Rails::Auth::ACL::Middleware, acl: config.x.acl
.