class ApplicationController < ActionController::Base include Blacklight::Controller include Hydra::Controller::ControllerBehavior include Hydra::PolicyAwareAccessControlsEnforcement rescue_from CanCan::AccessDenied do |exception| render :file => "#{Rails.root}/public/403", :formats => [:html], :status => 403, :layout => false end layout 'blacklight' protect_from_forgery end