Sha256: 0b02a5aa80309de70a857252fcf38356aea7374b89c6f3cc1b6dd84a6f157fea
Contents?: true
Size: 380 Bytes
Versions: 7
Compression:
Stored size: 380 Bytes
Contents
class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception # added by PagesCMS. Fill out this helper to protect your controllers. def logged_in_admin # Do something if admin # is not logged in # redirect_to '/' end end
Version data entries
7 entries across 7 versions & 1 rubygems