Sha256: 0c5e1f70297b7b82d357b8f601408ce6c8c73a047f551037a5ce0b1772fa7566

Contents?: true

Size: 204 Bytes

Versions: 16

Compression:

Stored size: 204 Bytes

Contents

class Admin::BaseController < ApplicationController
  before_filter :verify_admin_user

  layout 'admin'

private

  def verify_admin_user
    redirect_to("/home") unless current_user.admin?
  end
  
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
platform-3.1.4 test/dummy/app/controllers/admin/base_controller.rb
tr8n-3.2.3 local/tr8n_server/app/controllers/admin/base_controller.rb
tr8n-3.2.2 local/tr8n_server/app/controllers/admin/base_controller.rb
tr8n-3.2.1 local/tr8n_server/app/controllers/admin/base_controller.rb
tr8n-3.2.0 local/tr8n_server/app/controllers/admin/base_controller.rb
tr8n-3.1.8 local/tr8n_server/app/controllers/admin/base_controller.rb
tr8n-3.1.7 local/tr8n_server/app/controllers/admin/base_controller.rb
platform-3.1.3 test/dummy/app/controllers/admin/base_controller.rb
tr8n-3.1.6 local/tr8n_server/app/controllers/admin/base_controller.rb
tr8n-3.1.5 local/tr8n_server/app/controllers/admin/base_controller.rb
tr8n-3.1.4 local/tr8n_server/app/controllers/admin/base_controller.rb
tr8n-3.1.3 local/tr8n_server/app/controllers/admin/base_controller.rb
tr8n-3.1.2 local/tr8n_server/app/controllers/admin/base_controller.rb
platform-3.1.2 test/dummy/app/controllers/admin/base_controller.rb
platform-3.1.1 test/dummy/app/controllers/admin/base_controller.rb
tr8n-3.1.1 test/dummy/app/controllers/admin/base_controller.rb