Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix deprecation warning by removing #scoped call #390

Closed
wants to merge 1 commit into from

2 participants

@sonnym

DEPRECATION WARNING: Model.scoped is deprecated. Please use Model.all instead.
(called from user_sessions at .../authlogic/lib/authlogic/authenticates_many/base.rb:44

@sonnym sonnym fix deprecation warning by removing #scoped call
DEPRECATION WARNING: Model.scoped is deprecated. Please use Model.all instead.
  (called from user_sessions at .../authlogic/lib/authlogic/authenticates_many/base.rb:44
c6f5a5d
@binarylogic
Owner

This was fixed in a previous pull. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 27, 2014
  1. @sonnym

    fix deprecation warning by removing #scoped call

    sonnym authored
    DEPRECATION WARNING: Model.scoped is deprecated. Please use Model.all instead.
      (called from user_sessions at .../authlogic/lib/authlogic/authenticates_many/base.rb:44
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/authlogic/authenticates_many/base.rb
View
2  lib/authlogic/authenticates_many/base.rb
@@ -42,7 +42,7 @@ def authenticates_many(name, options = {})
options[:relationship_name] ||= options[:session_class].klass_name.underscore.pluralize
class_eval <<-"end_eval", __FILE__, __LINE__
def #{name}
- find_options = #{options[:find_options].inspect} || #{options[:relationship_name]}.scoped
+ find_options = #{options[:find_options].inspect} || #{options[:relationship_name]}
@#{name} ||= Authlogic::AuthenticatesMany::Association.new(#{options[:session_class]}, find_options, #{options[:scope_cookies] ? "self.class.model_name.underscore + '_' + self.send(self.class.primary_key).to_s" : "nil"})
end
end_eval
Something went wrong with that request. Please try again.