Sha256: 18747425527e041822b7973ef096ea8da027584d4ea1a4bd62c80286fe694285

Contents?: true

Size: 399 Bytes

Versions: 1

Compression:

Stored size: 399 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 monologue_current_user.nil?
      redirect_to admin_login_url, alert: I18n.t("monologue.admin.login.need_auth")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
monologue-0.3.0 app/controllers/monologue/admin/base_controller.rb