lib/sorcery/controller.rb
# To be used as before_filter.
# Will trigger auto-login attempts via the call to logged_in?
# If all attempts to auto-login fail, the failure callback will be called.
To be used as before_filter.
Will trigger auto-login attempts via the call to logged_in.
If all attempts to auto-login fail, the failure callback will be called.
To be used as before_filter . Will trigger auto - login attempts via the call to logged_in . If all attempts to auto - login fail the failure callback will be called .
def require_login
        if !logged_in?
          session[:return_to_url] = request.url if Config.save_return_to_url
          self.send(Config.not_authenticated_action)
        end
      end
def require_login if ! logged_in? session [ :return_to_url ] = request . url if Config . save_return_to_url self . send ( Config . not_authenticated_action ) end end
To be used as before_filter.
To be used as before_filter .