Sha256: fa9d012307a29eb08a86b2d5bdbfc6fbec56c7712c8bc4e9a618d4de0c7b50d4

Contents?: true

Size: 433 Bytes

Versions: 1

Compression:

Stored size: 433 Bytes

Contents

require "typus/authentication"

class AdminController < ActionController::Base

  unloadable

  before_filter :reload_config_and_roles
  before_filter :authenticate

  def show
    redirect_to admin_dashboard_path
  end

  protected

  def reload_config_and_roles
    Typus.reload! unless Rails.env.production?
  end

  include Typus::Authentication

  def set_path
    @back_to || request.referer || admin_dashboard_path
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
typus-1.0.0.pre app/controllers/admin_controller.rb