Class: CanTango::Permits::UserPermit::Finder

Inherits:
CanTango::PermitEngine::Finder show all
Defined in:
lib/cantango/permits/user_permit/finder.rb

Instance Attribute Summary

Attributes inherited from CanTango::PermitEngine::Finder

#name, #user_account

Instance Method Summary collapse

Methods inherited from CanTango::PermitEngine::Finder

#get_permit

Methods included from Helpers::Debug

#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 , name
  super
end

Instance Method Details

#permit_classObject



13
14
15
# File 'lib/cantango/permits/user_permit/finder.rb', line 13

def permit_class
  "#{name.to_s.camelize}Permit"
end

#typeObject



9
10
11
# File 'lib/cantango/permits/user_permit/finder.rb', line 9

def type
  :user
end