Sha256: 925f0098daf60d870fdf0cdf0fa186038dcf7554370454483346bd335c4b1f07

Contents?: true

Size: 416 Bytes

Versions: 8

Compression:

Stored size: 416 Bytes

Contents

class Admin::BaseController < ActionController::Base

  include Typus::Authentication::const_get(Typus.authentication.to_s.classify)

  before_filter :reload_config_and_roles
  before_filter :authenticate

  helper_method :current_user

  protected

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

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

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
typus-3.0.2 app/controllers/admin/base_controller.rb
typus-3.0.1 app/controllers/admin/base_controller.rb
typus-3.0.0 app/controllers/admin/base_controller.rb
typus-1.0.0.pre13 app/controllers/admin/base_controller.rb
typus-1.0.0.pre12 app/controllers/admin/base_controller.rb
typus-1.0.0.pre11 app/controllers/admin/base_controller.rb
typus-1.0.0.pre10 app/controllers/admin/base_controller.rb
typus-1.0.0.pre9 app/controllers/admin/base_controller.rb