Sha256: cb4c1e74e3754132e403ec031001e46d153ad4aee03469809cee6673c322e449

Contents?: true

Size: 364 Bytes

Versions: 1

Compression:

Stored size: 364 Bytes

Contents

class AdminController < ApplicationController
  helper :admin
  before_filter :authenticate_admin!
  layout "admin"

  protected
    def current_user
      current_admin
    end

    def permission_denied
      flash[:alert] = Radmin::I18n.t(:permission_denied,:default => "Sorry, you are not allowed to access that page.")
      redirect_to admin_url
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
radmin-0.2.0 app/controllers/admin_controller.rb