From 55dd5e61ae0f8071a6d6fa904f948ff3c995f162 Mon Sep 17 00:00:00 2001 From: Simon Stueckemann Date: Tue, 23 Jun 2015 10:12:13 +0100 Subject: [PATCH] Migrate from deprecated 'scoped' method to 'all' --- devise-kerberos-authenticatable.gemspec | 2 +- lib/devise_kerberos_authenticatable/model.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/devise-kerberos-authenticatable.gemspec b/devise-kerberos-authenticatable.gemspec index 13d8fe8..f72d566 100644 --- a/devise-kerberos-authenticatable.gemspec +++ b/devise-kerberos-authenticatable.gemspec @@ -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 diff --git a/lib/devise_kerberos_authenticatable/model.rb b/lib/devise_kerberos_authenticatable/model.rb index 539c172..c92c060 100644 --- a/lib/devise_kerberos_authenticatable/model.rb +++ b/lib/devise_kerberos_authenticatable/model.rb @@ -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