Padrino::Admin::AccessControl::ProjectModule

Class: Padrino::Admin::AccessControl::ProjectModule

Inherits:
Object
  • Object

Overview

Project Module class.

Instance Attribute Summary

Instance Method Summary

Constructor Details

#initialize(name, path, options = {}) ⇒ ProjectModule

Returns a new instance of ProjectModule

Instance Attribute Details

#name ⇒ Object (readonly)

Returns the value of attribute name

#options ⇒ Object (readonly)

Returns the value of attribute options

Instance Method Details

#human_name ⇒ Object

Returns the name of the project module humanize them for you.

#path(prefix = nil) ⇒ Object

Return the path of the project module. If a prefix given will be pre pended.

Examples:

# => /accounts/new
project_module.path
# => /admin/accounts
project_module.path("/admin")
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部