Sha256: be8564c499815738687308220a95678bfcce4177f2bed96bd2eabc288b56cd86

Contents?: true

Size: 376 Bytes

Versions: 6

Compression:

Stored size: 376 Bytes

Contents

class Admin < ActiveRecord::Base
  devise :database_authenticatable, :token_authenticatable, :radius_authenticatable

  attr_accessor :login

  attr_accessible :login, :email, :password, :password_confirmation, :remember_me, :uid

  def self.find_for_database_authentication(conditions)
    login = conditions.delete(:login)
    conditions[:email] = login
    super
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
devise-radius-authenticatable-0.0.6 spec/rails_app/app/models/admin.rb
devise-radius-authenticatable-0.0.5 spec/rails_app/app/models/admin.rb
devise-radius-authenticatable-0.0.4 spec/rails_app/app/models/admin.rb
devise-radius-authenticatable-0.0.3 spec/rails_app/app/models/admin.rb
devise-radius-authenticatable-0.0.2 spec/rails_app/app/models/admin.rb
devise-radius-authenticatable-0.0.1 spec/rails_app/app/models/admin.rb