Remove remaining non-essential pieces of Rails
This commit is contained in:
parent
ccc9b2623b
commit
acbd5d1462
5 changed files with 5 additions and 7 deletions
|
@ -1,2 +0,0 @@
|
|||
class ApplicationController < ActionController::API
|
||||
end
|
|
@ -2,15 +2,15 @@ require_relative 'boot'
|
|||
|
||||
require "rails"
|
||||
# Pick the frameworks you want:
|
||||
require "active_model/railtie"
|
||||
# require "active_model/railtie"
|
||||
# require "active_job/railtie"
|
||||
# require "active_record/railtie"
|
||||
# require "active_storage/engine"
|
||||
require "action_controller/railtie"
|
||||
# require "action_controller/railtie"
|
||||
# require "action_mailer/railtie"
|
||||
# require "action_mailbox/engine"
|
||||
# require "action_text/engine"
|
||||
require "action_view/railtie"
|
||||
# require "action_view/railtie"
|
||||
# require "action_cable/engine"
|
||||
# require "sprockets/railtie"
|
||||
require "rails/test_unit/railtie"
|
||||
|
|
|
@ -21,14 +21,14 @@ Rails.application.configure do
|
|||
|
||||
# Show full error reports and disable caching.
|
||||
config.consider_all_requests_local = true
|
||||
config.action_controller.perform_caching = false
|
||||
# config.action_controller.perform_caching = false
|
||||
config.cache_store = :null_store
|
||||
|
||||
# Raise exceptions instead of rendering exception templates.
|
||||
config.action_dispatch.show_exceptions = false
|
||||
|
||||
# Disable request forgery protection in test environment.
|
||||
config.action_controller.allow_forgery_protection = false
|
||||
# config.action_controller.allow_forgery_protection = false
|
||||
|
||||
# Print deprecation notices to the stderr.
|
||||
config.active_support.deprecation = :stderr
|
||||
|
|
Reference in a new issue