Padrino::Admin::AccessControl::Authorization
Class: Padrino::Admin::AccessControl::Authorization
- Inherits:
- Object
- Object
- Padrino::Admin::AccessControl::Authorization
Overview
Project Authorization Class.
Instance Attribute Summary
-
#allowed ⇒ Object
readonly Returns the value of attribute allowed. -
#denied ⇒ Object
readonly Returns the value of attribute denied. -
#project_modules ⇒ Object
readonly Returns the value of attribute project_modules. -
#roles ⇒ Object
readonly Returns the value of attribute roles.
Instance Method Summary
-
#allow(path) ⇒ Object
Allow a specified path. -
#initialize(*roles) {|_self| ... } ⇒ Authorization
constructor A new instance of Authorization. -
#project_module(name, path, options = {}) ⇒ Object
Create a project module. -
#protect(path) ⇒ Object
Protect access from.
Constructor Details
#initialize(*roles) {|_self| ... } ⇒ Authorization
Returns a new instance of Authorization
Instance Attribute Details
#allowed ⇒ Object (readonly)
Returns the value of attribute allowed
#denied ⇒ Object (readonly)
Returns the value of attribute denied
#project_modules ⇒ Object (readonly)
Returns the value of attribute project_modules
#roles ⇒ Object (readonly)
Returns the value of attribute roles
Instance Method Details
#allow(path) ⇒ Object
Allow a specified path.
#project_module(name, path, options = {}) ⇒ Object
Create a project module.
#protect(path) ⇒ Object
Protect access from.
© 2010–2016 Padrino
Licensed under the MIT License.
http://www.rubydoc.info/github/padrino/padrino-framework/Padrino/Admin/AccessControl/Authorization