Permalink
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...
1 parent 8c8ec7d commit d0a972bff439f4d1bedc675931b49a4f193f22a7 @jqr committed Mar 25, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit d0a972b

Please sign in to comment.