Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Making subclassed User models easier to use for the typical case by u…

…sing the base class's name instead of the current class.
  • Loading branch information...
commit d0a972bff439f4d1bedc675931b49a4f193f22a7 1 parent 8c8ec7d
@jqr authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/authlogic/acts_as_authentic/session_maintenance.rb
View
4 lib/authlogic/acts_as_authentic/session_maintenance.rb
@@ -39,10 +39,10 @@ def session_ids(value = nil)
# The name of the associated session class. This is inferred by the name of the model.
#
- # * <tt>Default:</tt> "#{klass.name}Session".constantize
+ # * <tt>Default:</tt> "#{base_class.name}Session".constantize
# * <tt>Accepts:</tt> Class
def session_class(value = nil)
- const = "#{name}Session".constantize rescue nil
+ const = "#{base_class.name}Session".constantize rescue nil
config(:session_class, value, const)
end
alias_method :session_class=, :session_class
Please sign in to comment.
Something went wrong with that request. Please try again.