Module: AuthlogicWind::ActsAsAuthentic::Config

Defined in:
lib/authlogic_wind/acts_as_authentic.rb

Instance Method Summary collapse

Instance Method Details

#find_by_wind_login_field(login) ⇒ Object



40
41
42
# File 'lib/authlogic_wind/acts_as_authentic.rb', line 40

def ()
  find(, )
end

#validate_wind_login(value = nil) ⇒ Object Also known as: validate_wind_login=

Whether or not to validate the wind_login field. If set to false ALL wind validation will need to be handled by you.

  • Default: true

  • Accepts: Boolean



34
35
36
# File 'lib/authlogic_wind/acts_as_authentic.rb', line 34

def (value = nil)
  rw_config(:validate_wind_login, value, true)
end

#wind_login_field(value = nil) ⇒ Object Also known as: wind_login_field=

The name of the wind login field in the database.

  • Default: :wind_login, :login, or :username, if they exist

  • Accepts: Symbol



24
25
26
# File 'lib/authlogic_wind/acts_as_authentic.rb', line 24

def (value = nil)
  rw_config(:wind_login_field, value, first_column_to_exist(nil, :wind_login, :login, :username))
end