Class: CanTango::Permit::AccountType
- Extended by:
- ClassMethods
- Defined in:
- lib/cantango/permit/account_type.rb
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(ability) ⇒ AccountType
constructor
creates the permit.
- #valid? ⇒ Boolean
Methods included from ClassMethods
Methods inherited from Base
#any, #category, #disable!, #disabled?, #modes, #name, #permit_type, #sync_rules!
Methods included from ClassMethods
#finder, #hash_key, #inherited, #modes, #type
Methods included from Helper::Naming
Constructor Details
#initialize(ability) ⇒ AccountType
creates the permit
18 19 20 |
# File 'lib/cantango/permit/account_type.rb', line 18 def initialize ability super end |
Instance Method Details
#valid? ⇒ Boolean
22 23 24 25 |
# File 'lib/cantango/permit/account_type.rb', line 22 def valid? debug_invalid if !(subject_name == account_name) subject_name == account_name end |