Class: Stratagem::Instrumentation::Models::Authentication::Devise::Metadata
- Inherits:
-
Object
- Object
- Stratagem::Instrumentation::Models::Authentication::Devise::Metadata
- Defined in:
- lib/stratagem/instrumentation/models/authentication/devise/metadata.rb
Overview
prefix method names with to avoid collision
Constant Summary collapse
- VIRTUAL_COLUMNS =
[:password, :password_confirmation]
Instance Method Summary collapse
- #attribute_names ⇒ Object
- #attribute_type(name) ⇒ Object
- #authenticates? ⇒ Boolean
-
#initialize(model) ⇒ Metadata
constructor
A new instance of Metadata.
- #internal_attributes ⇒ Object
Constructor Details
#initialize(model) ⇒ Metadata
Returns a new instance of Metadata.
17 18 19 |
# File 'lib/stratagem/instrumentation/models/authentication/devise/metadata.rb', line 17 def initialize(model) @model = model end |
Instance Method Details
#attribute_names ⇒ Object
21 22 23 |
# File 'lib/stratagem/instrumentation/models/authentication/devise/metadata.rb', line 21 def attribute_names VIRTUAL_COLUMNS end |
#attribute_type(name) ⇒ Object
29 30 31 |
# File 'lib/stratagem/instrumentation/models/authentication/devise/metadata.rb', line 29 def attribute_type(name) :string end |
#authenticates? ⇒ Boolean
13 14 15 |
# File 'lib/stratagem/instrumentation/models/authentication/devise/metadata.rb', line 13 def authenticates? true end |
#internal_attributes ⇒ Object
25 26 27 |
# File 'lib/stratagem/instrumentation/models/authentication/devise/metadata.rb', line 25 def internal_attributes [:encrypted_password, :password_salt] end |