require File.expand_path('../boot', __FILE__)

require 'rails/all'

Bundler.require(:default, Rails.env)

module Houndapp
  class Application < Rails::Application
    config.autoload_paths += %W(#{config.root}/lib)
    config.encoding = "utf-8"
    config.filter_parameters += [:password]
    config.active_support.escape_html_entities_in_json = true
    config.middleware.insert_before "Rack::ETag", "Rack::Deflater"
    config.middleware.insert_before(
      "Rack::ETag",
      "RedirectToConfiguration"
    )
  end
end
