Class: Stratagem::Instrumentation::Models::Authentication::Devise::Metadata

Inherits:
Object
  • Object
show all
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

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_namesObject



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

Returns:

  • (Boolean)


13
14
15
# File 'lib/stratagem/instrumentation/models/authentication/devise/metadata.rb', line 13

def authenticates?
  true
end

#internal_attributesObject



25
26
27
# File 'lib/stratagem/instrumentation/models/authentication/devise/metadata.rb', line 25

def internal_attributes
  [:encrypted_password, :password_salt]
end