gilest/briefly

View on GitHub
app/controllers/application_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class ApplicationController < ActionController::Base
  protect_from_forgery

  def authenticate!
    redirect_to new_session_path if session[:admin].nil?
  end

  def not_found
    raise ActionController::RoutingError.new('Not Found')
  end
end