Class: CanTango::Permits::UserPermit::Finder
- Inherits:
-
CanTango::PermitEngine::Finder
- Object
- CanTango::PermitEngine::Finder
- CanTango::Permits::UserPermit::Finder
- Defined in:
- lib/cantango/permits/user_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/user_permit/finder.rb', line 5 def initialize account, name super end |
Instance Method Details
#permit_class ⇒ Object
13 14 15 |
# File 'lib/cantango/permits/user_permit/finder.rb', line 13 def permit_class "#{name.to_s.camelize}Permit" end |
#type ⇒ Object
9 10 11 |
# File 'lib/cantango/permits/user_permit/finder.rb', line 9 def type :user end |