Migrate from deprecated 'scoped' method to 'all'
This commit is contained in:
parent
4522d276c7
commit
55dd5e61ae
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ require 'rake'
|
|||
|
||||
Gem::Specification.new do |s|
|
||||
s.name = 'devise-kerberos-authenticatable'
|
||||
s.version = '0.1.2'
|
||||
s.version = '0.1.3'
|
||||
s.date = '2015-06-23'
|
||||
s.summary = 'Devise authentication strategy for Kerberos'
|
||||
s.description = 'Devise extension providing the ability to authenticate
|
||||
|
|
|
@ -23,7 +23,7 @@ module Devise
|
|||
def authenticate_with_kerberos(attributes = {})
|
||||
return nil unless attributes[:username].present?
|
||||
|
||||
resource = scoped.where(:username => attributes['username']).first
|
||||
resource = all.where(:username => attributes['username']).first
|
||||
|
||||
if resource.blank?
|
||||
resource = new
|
||||
|
|
Loading…
Reference in a new issue