Sha256: 6495b30d889701f64697f3acac4aea23b386b4266aa1d026b651f162e389fd76
Contents?: true
Size: 521 Bytes
Versions: 7
Compression:
Stored size: 521 Bytes
Contents
module Cream::Generators module Config module CanCan def configure_devise_gems gem 'cancan' gem 'cancan-rest-links' end # CanCan access denied exception handling def configure_exception_handling insert_into_controller :application, :after => "ActionController::Base\n" do %{ rescue_from CanCan::AccessDenied do |exception| flash[:error] = exception.message redirect_to root_url end } end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems