Change from named_scope to scope #221

Closed
wants to merge 1 commit into
from

Projects

None yet

5 participants

@fedesoria

No description provided.

Dear gem maintainer: Please pull this change in. I see roughly 400 forked repos fixing this problem, so I think people would be very happy to get rid of deprecation messages in their terminals.

I'd second what bluepojo said. Much appreciated binarylogic :)

Contributor
jjb commented Jan 7, 2011

hi-- i'm going to try to maintain the One True Rails 3 Fork :) please send your pull request to https://github.com/jjb/authlogic

@eric eric commented on the diff Mar 14, 2011
lib/authlogic/acts_as_authentic/logged_in_status.rb
@@ -32,8 +32,8 @@ module Authlogic
klass.class_eval do
include InstanceMethods
- named_scope :logged_in, lambda { {:conditions => ["last_request_at > ?", logged_in_timeout.seconds.ago]} }
- named_scope :logged_out, lambda { {:conditions => ["last_request_at is NULL or last_request_at <= ?", logged_in_timeout.seconds.ago]} }
+ scope :logged_in, lambda { {:conditions => ["last_request_at > ?", logged_in_timeout.seconds.ago]} }
eric
eric Mar 14, 2011

Will this break Rails 2?

@ghost
ghost commented Apr 30, 2011

This has been pulled in from alternate pull request. Thanks.

@ghost ghost closed this Apr 30, 2011
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment