Skip to content
Browse files

Merge pull request #281 from crossroads/cookie_klass

Use klass_name for cookie_key, since klass_name falls back to guessed_klass_name anyway.
  • Loading branch information...
2 parents d9ea9e6 + 1fc937d commit 77e83af894c210fe778c23ac44f14daf8045c5f4 @binarylogic committed Oct 18, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/authlogic/session/cookies.rb
View
4 lib/authlogic/session/cookies.rb
@@ -23,10 +23,10 @@ module Config
# session = UserSession.new(:super_high_secret)
# session.cookie_key => "super_high_secret_user_credentials"
#
- # * <tt>Default:</tt> "#{guessed_klass_name.underscore}_credentials"
+ # * <tt>Default:</tt> "#{klass_name.underscore}_credentials"
# * <tt>Accepts:</tt> String
def cookie_key(value = nil)
- rw_config(:cookie_key, value, "#{guessed_klass_name.underscore}_credentials")
+ rw_config(:cookie_key, value, "#{klass_name.underscore}_credentials")
end
alias_method :cookie_key=, :cookie_key

0 comments on commit 77e83af

Please sign in to comment.
Something went wrong with that request. Please try again.