Sha256: 8d69daa76efa4c741fdebb72087f478c8af20f25f52bea234a18629b6b1bd5bc

Contents?: true

Size: 388 Bytes

Versions: 31

Compression:

Stored size: 388 Bytes

Contents

module Noodall
  module Admin
    class BaseController < ApplicationController
      layout 'noodall_admin'
      before_filter :authenticate_user!

      rescue_from Canable::Transgression, :with => :permission_denied

      private
        def permission_denied
          flash[:error] = "You do not have permission to do that"
          redirect_to :back
        end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
noodall-ui-0.1.14 app/controllers/noodall/admin/base_controller.rb
noodall-ui-0.1.13 app/controllers/noodall/admin/base_controller.rb
noodall-ui-0.1.12 app/controllers/noodall/admin/base_controller.rb
noodall-ui-0.1.11 app/controllers/noodall/admin/base_controller.rb
noodall-ui-0.1.10 app/controllers/noodall/admin/base_controller.rb
noodall-ui-0.1.9 app/controllers/noodall/admin/base_controller.rb
noodall-ui-0.1.8 app/controllers/noodall/admin/base_controller.rb
noodall-ui-0.1.6 app/controllers/noodall/admin/base_controller.rb
noodall-ui-0.1.5 app/controllers/noodall/admin/base_controller.rb
noodall-ui-0.1.4 app/controllers/noodall/admin/base_controller.rb
noodall-ui-0.1.3 app/controllers/noodall/admin/base_controller.rb
noodall-ui-0.1.2 app/controllers/noodall/admin/base_controller.rb
noodall-ui-0.1.1 app/controllers/noodall/admin/base_controller.rb
noodall-ui-0.1.0 app/controllers/noodall/admin/base_controller.rb
noodall-ui-0.0.22 app/controllers/noodall/admin/base_controller.rb
noodall-ui-0.0.21 app/controllers/noodall/admin/base_controller.rb
noodall-ui-0.0.20 app/controllers/noodall/admin/base_controller.rb
noodall-ui-0.0.19 app/controllers/noodall/admin/base_controller.rb
noodall-ui-0.0.18 app/controllers/noodall/admin/base_controller.rb
noodall-ui-0.0.17 app/controllers/noodall/admin/base_controller.rb