Sha256: 57d883372a79aeab012a1550a9b99d56e6fcddcc96f6956210278add9cdd14f0
Contents?: true
Size: 687 Bytes
Versions: 2
Compression:
Stored size: 687 Bytes
Contents
module Admin class BaseController < ApplicationController layout 'admin' include Admin::PathHistory helper_method :back_uri before_action :no_cache! before_action :authenticate_administrator! before_action :load_structure before_action :store_path_history protected def load_structure @structure = ::AdminStructure.new end def add_success_msg flash.now[:admin_success] = 'Информация успешно сохранена' end def redirect_or_render partial if params[:save].present? redirect_to_back else add_success_msg render partial end end end end
Version data entries
2 entries across 2 versions & 1 rubygems