Sha256: 7ce659c73168767d141754d3ae6243495ca2c9a121542806f3d80a258a8735cc
Contents?: true
Size: 439 Bytes
Versions: 1
Compression:
Stored size: 439 Bytes
Contents
require "typus/authentication" class Admin::BaseController < 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.pre2 | app/controllers/admin/base_controller.rb |