Class: CanTango::Permit::AccountType

Inherits:
Base
  • Object
show all
Extended by:
ClassMethods
Defined in:
lib/cantango/permit/account_type.rb

Defined Under Namespace

Modules: ClassMethods

Instance Attribute Summary

Attributes inherited from Base

#ability, #disabled, #mode

Instance Method Summary collapse

Methods included from ClassMethods

hash_key, type

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

#permit_name, #permit_type

Constructor Details

#initialize(ability) ⇒ AccountType

creates the permit

Parameters:

  • the (Permits::Ability)

    ability

  • the (Hash)

    options



18
19
20
# File 'lib/cantango/permit/account_type.rb', line 18

def initialize ability
  super
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


22
23
24
25
# File 'lib/cantango/permit/account_type.rb', line 22

def valid?
  debug_invalid if !(subject_name == )
  subject_name == 
end