Class: CanTango::Permits::RoleGroupPermit::Finder

Inherits:
CanTango::PermitEngine::Finder show all
Defined in:
lib/cantango/permits/role_group_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.



6
7
8
# File 'lib/cantango/permits/role_group_permit/finder.rb', line 6

def initialize , name
  super
end

Instance Method Details

#permit_classObject



14
15
16
# File 'lib/cantango/permits/role_group_permit/finder.rb', line 14

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

#typeObject



10
11
12
# File 'lib/cantango/permits/role_group_permit/finder.rb', line 10

def type
  :role_group
end