Class: Stratagem::Instrumentation::Models::Authentication::Authlogic::Metadata

Inherits:
Object
  • Object
show all
Defined in:
lib/stratagem/instrumentation/models/authentication/authlogic/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.



11
12
13
# File 'lib/stratagem/instrumentation/models/authentication/authlogic/metadata.rb', line 11

def initialize(model)
  @model = model
end

Instance Method Details

#attribute_namesObject



15
16
17
# File 'lib/stratagem/instrumentation/models/authentication/authlogic/metadata.rb', line 15

def attribute_names
  VIRTUAL_COLUMNS
end

#attribute_type(name) ⇒ Object



23
24
25
# File 'lib/stratagem/instrumentation/models/authentication/authlogic/metadata.rb', line 23

def attribute_type(name)
  :string
end

#authenticates?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/stratagem/instrumentation/models/authentication/authlogic/metadata.rb', line 7

def authenticates?
  true
end

#internal_attributesObject



19
20
21
# File 'lib/stratagem/instrumentation/models/authentication/authlogic/metadata.rb', line 19

def internal_attributes
  [:crypted_password, :password_salt]
end