Class: CanTango::Permit::User
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#match_value ⇒ Object
Returns the value of attribute match_value.
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ability) ⇒ User
constructor
creates the permit.
- #valid? ⇒ Boolean
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) ⇒ User
creates the permit
9 10 11 |
# File 'lib/cantango/permit/user.rb', line 9 def initialize ability super end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
4 5 6 |
# File 'lib/cantango/permit/user.rb', line 4 def key @key end |
#match_value ⇒ Object
Returns the value of attribute match_value.
4 5 6 |
# File 'lib/cantango/permit/user.rb', line 4 def match_value @match_value end |
Class Method Details
.hash_key ⇒ Object
13 14 15 |
# File 'lib/cantango/permit/user.rb', line 13 def self.hash_key nil end |
Instance Method Details
#valid? ⇒ Boolean
17 18 19 20 |
# File 'lib/cantango/permit/user.rb', line 17 def valid? debug_invalid if !match? true end |