Exception: Authlogic::Session::Existence::SessionInvalidError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/authlogic/session/base.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(session) ⇒ SessionInvalidError

Returns a new instance of SessionInvalidError.



22
23
24
25
26
27
28
29
# File 'lib/authlogic/session/base.rb', line 22

def initialize(session)
  message = I18n.t(
    "error_messages.session_invalid",
    default: "Your session is invalid and has the following errors:"
  )
  message += " #{session.errors.full_messages.to_sentence}"
  super message
end