Sha256: b9ee586899f9f16155ceb3f9224f9aa34d168cc254c631e4bce75ef9770dc4f4
Contents?: true
Size: 348 Bytes
Versions: 21
Compression:
Stored size: 348 Bytes
Contents
class ApplicationController < ActionController::Base # Uncomment to require auth on all actions (and opt-out when necessary). # before_filter :require_login, except: [:not_authenticated] protect_from_forgery check_authorization protected def not_authenticated redirect_to sign_in_path, alert: "Please sign in first." end end
Version data entries
21 entries across 21 versions & 1 rubygems