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