Sha256: 4e10e88bccc8eeeaadc79654d08ce195ee5473a6b9553e0a4259c5d5f2029448
Contents?: true
Size: 473 Bytes
Versions: 3
Compression:
Stored size: 473 Bytes
Contents
require 'active_support/concern' module Monologue module ControllerHelpers module Auth extend ActiveSupport::Concern include Monologue::ControllerHelpers::User included do before_filter :authenticate_user! end private def authenticate_user! if monologue_current_user.nil? redirect_to monologue.admin_login_url, alert: I18n.t("monologue.admin.login.need_auth") end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems