Sha256: 5cc6cc4793bb133281feeb42a7968ff6be98711aa5f2cde0c93c1082f6585d30
Contents?: true
Size: 392 Bytes
Versions: 4
Compression:
Stored size: 392 Bytes
Contents
class Monologue::Admin::BaseController < Monologue::ApplicationController before_filter :authenticate_user! force_ssl if Monologue.admin_force_ssl # TODO: find a way to test that with capybara layout "layouts/monologue/admin" def authenticate_user! if current_user.nil? redirect_to admin_login_url, :alert => I18n.t("monologue.admin.login.need_auth") end end end
Version data entries
4 entries across 4 versions & 1 rubygems