Module: CanTango::Permit::ClassMethods
- Includes:
- Helper::Naming
- Included in:
- Base
- Defined in:
- lib/cantango/permit/class_methods.rb
Instance Method Summary
collapse
#account_name, #permit_name, #permit_type
Instance Method Details
#finder ⇒ Object
27
28
29
|
# File 'lib/cantango/permit/class_methods.rb', line 27
def finder
@finder ||= CanTango::Finder::Permit::Base.new permit_name(self), :account => account_name(self)
end
|
#hash_key ⇒ Object
23
24
25
|
# File 'lib/cantango/permit/class_methods.rb', line 23
def hash_key
raise NotImplementedError
end
|
#inherited(subclass) ⇒ Object
#modes(*names) ⇒ Object
13
14
15
16
17
|
# File 'lib/cantango/permit/class_methods.rb', line 13
def modes *names
@modes ||= []
return @modes if names.empty?
@modes = names.to_symbols
end
|
#type ⇒ Object
19
20
21
|
# File 'lib/cantango/permit/class_methods.rb', line 19
def type
:abstract
end
|