Skip to content

Instantly share code, notes, and snippets.

@matthewglover
Created October 2, 2017 14:57
Show Gist options
  • Save matthewglover/353a066a275e9657f902c86beeadfbcb to your computer and use it in GitHub Desktop.
Save matthewglover/353a066a275e9657f902c86beeadfbcb to your computer and use it in GitHub Desktop.
require_relative 'boot'
# require "rails"
require "action_controller/railtie"
require "action_view/railtie"
Bundler.require(*Rails.groups)
module BareBones
class Application < Rails::Application
config.eager_load = false
config.middleware.delete Rack::Sendfile
config.middleware.delete ActiveSupport::Cache::Strategy::LocalCache::Middleware
config.middleware.delete Rack::Runtime
config.middleware.delete Rack::MethodOverride
config.middleware.delete ActionDispatch::RequestId
config.middleware.delete Rails::Rack::Logger
config.middleware.delete ActionDispatch::ShowExceptions
config.middleware.delete ActionDispatch::DebugExceptions
config.middleware.delete ActionDispatch::Reloader
config.middleware.delete ActionDispatch::Callbacks
config.middleware.delete ActionDispatch::Cookies
config.middleware.delete ActionDispatch::Session::CookieStore
config.middleware.delete ActionDispatch::Flash
config.middleware.delete Rack::Head
config.middleware.delete Rack::ConditionalGet
config.middleware.delete Rack::ETag
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment