andey/bestofama

View on GitHub
app/controllers/application_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class ApplicationController < ActionController::Base
  protect_from_forgery
  rescue_from "ActionController::UnknownAction", :with => :raise_404
  rescue_from "ActionController::UnknownFormat", :with => :raise_404
  rescue_from "ActionController::RoutingError",  :with => :raise_404

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

  def ssl_configured?
    Rails.env.production?
  end

end