Sha256: 1a8acb19d556c3e2915fb9909b9a2fa9e45794acb6fde31391ead1210a67ed71

Contents?: true

Size: 384 Bytes

Versions: 6

Compression:

Stored size: 384 Bytes

Contents

require "typus/authentication"

class Admin::BaseController < ActionController::Base

  unloadable

  before_filter :reload_config_and_roles
  before_filter :authenticate

  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

6 entries across 6 versions & 1 rubygems

Version Path
typus-1.0.0.pre8 app/controllers/admin/base_controller.rb
typus-1.0.0.pre7 app/controllers/admin/base_controller.rb
typus-1.0.0.pre6 app/controllers/admin/base_controller.rb
typus-1.0.0.pre5 app/controllers/admin/base_controller.rb
typus-1.0.0.pre4 app/controllers/admin/base_controller.rb
typus-1.0.0.pre3 app/controllers/admin/base_controller.rb