Sha256: 729845ec1db4e4b90a0525469970952e9c2b6e49589149669fab984ab8452270

Contents?: true

Size: 339 Bytes

Versions: 1

Compression:

Stored size: 339 Bytes

Contents

module Samurai
  class ApplicationController < ActionController::Base
    before_filter :authenticate_user!

    rescue_from CanCan::AccessDenied do |exception|
      render file: 'static/403.html', status: 403, layout: false
    end

    def current_ability
      @current_ability ||= Samurai::Ability.new(current_user)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
samurai_core-1.0.0 app/controllers/samurai/application_controller.rb