Class: CanTango::Permit::Special

Inherits:
Base
  • Object
show all
Defined in:
lib/cantango/permit/special.rb

Instance Attribute Summary

Attributes inherited from Base

#ability, #disabled, #mode

Class Method Summary collapse

Instance Method Summary collapse

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

#account_name, #permit_name, #permit_type

Constructor Details

#initialize(ability) ⇒ Special

Returns a new instance of Special.



4
5
6
# File 'lib/cantango/permit/special.rb', line 4

def initialize ability
  super
end

Class Method Details

.hash_keyObject



8
9
10
# File 'lib/cantango/permit/special.rb', line 8

def self.hash_key
  nil
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/cantango/permit/special.rb', line 12

def valid?
  true
end