Sha256: 4bde43153b3936182d172561d33c650776f21ed8510f7460eba147cb4c16e0f5

Contents?: true

Size: 390 Bytes

Versions: 2

Compression:

Stored size: 390 Bytes

Contents

class ApplicationController < ActionController::Base
  protect_from_forgery
  check_authorization :unless => :devise_controller? #cancan
  
  include SessionsHelper
  
  rescue_from CanCan::AccessDenied do |exception|
    Rails.logger.fatal "Access denied on #{exception.action} #{exception.subject.inspect}"
    redirect_to root_url, :flash => { :error => exception.message }
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
guara-0.0.3 app/controllers/application_controller.rb
guara-0.0.1.rc app/controllers/application_controller.rb