Sha256: 26e393c11bfcdbddffec4293956ee90c8ec9890aa18cf576a289d09a6aa5a4ef
Contents?: true
Size: 396 Bytes
Versions: 5
Compression:
Stored size: 396 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 before_action :set_paper_trail_whodunnit def ensure_plan!(plan) unless current_user.subscribed_to? plan redirect_to '/', alert: 'You do not have access to that.' end end end
Version data entries
5 entries across 5 versions & 1 rubygems