Class: CanTango::Permits::RolePermit::Finder
- Inherits:
-
CanTango::PermitEngine::Finder
- Object
- CanTango::PermitEngine::Finder
- CanTango::Permits::RolePermit::Finder
- Defined in:
- lib/cantango/permits/role_permit/finder.rb
Instance Attribute Summary
Attributes inherited from CanTango::PermitEngine::Finder
Instance Method Summary collapse
-
#initialize(account, name) ⇒ Finder
constructor
A new instance of Finder.
- #permit_class ⇒ Object
- #type ⇒ Object
Methods inherited from CanTango::PermitEngine::Finder
Methods included from Helpers::Debug
Constructor Details
#initialize(account, name) ⇒ Finder
Returns a new instance of Finder.
5 6 7 |
# File 'lib/cantango/permits/role_permit/finder.rb', line 5 def initialize account, name super end |
Instance Method Details
#permit_class ⇒ Object
13 14 15 |
# File 'lib/cantango/permits/role_permit/finder.rb', line 13 def permit_class "#{name.to_s.camelize}RolePermit" end |
#type ⇒ Object
9 10 11 |
# File 'lib/cantango/permits/role_permit/finder.rb', line 9 def type :role end |