Module: NoPassword::Session
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/nopassword/session.rb,
lib/nopassword/session/authentication.rb
Overview
Controller concern for managing authenticated sessions. Include this in your ApplicationController to get session helpers.
Example:
class ApplicationController < ActionController::Base
include NoPassword::Session
end
class DashboardController < ApplicationController
def show
@user = authenticated # Raises UnauthenticatedError if not authenticated
end
end
Defined Under Namespace
Classes: Authentication