@@ -231,7 +231,6 @@ def self.without_modules(*modules)
231
231
AbstractController ::Rendering ,
232
232
AbstractController ::Translation ,
233
233
AbstractController ::AssetPaths ,
234
-
235
234
Helpers ,
236
235
UrlFor ,
237
236
Redirecting ,
@@ -261,26 +260,55 @@ def self.without_modules(*modules)
261
260
HttpAuthentication ::Token ::ControllerMethods ,
262
261
DefaultHeaders ,
263
262
Logging ,
264
-
265
- # Before callbacks should also be executed as early as possible, so also include
266
- # them at the bottom.
267
263
AbstractController ::Callbacks ,
268
-
269
- # Append rescue at the bottom to wrap as much as possible.
270
264
Rescue ,
271
-
272
- # Add instrumentations hooks at the bottom, to ensure they instrument all the
273
- # methods properly.
274
265
Instrumentation ,
275
-
276
- # Params wrapper should come before instrumentation so they are properly showed
277
- # in logs
278
266
ParamsWrapper
279
267
]
280
268
281
- MODULES . each do |mod |
282
- include mod
283
- end
269
+ include AbstractController ::Rendering
270
+ include AbstractController ::Translation
271
+ include AbstractController ::AssetPaths
272
+ include Helpers
273
+ include UrlFor
274
+ include Redirecting
275
+ include ActionView ::Layouts
276
+ include Rendering
277
+ include Renderers ::All
278
+ include ConditionalGet
279
+ include EtagWithTemplateDigest
280
+ include EtagWithFlash
281
+ include Caching
282
+ include MimeResponds
283
+ include ImplicitRender
284
+ include StrongParameters
285
+ include ParameterEncoding
286
+ include Cookies
287
+ include Flash
288
+ include FormBuilder
289
+ include RequestForgeryProtection
290
+ include ContentSecurityPolicy
291
+ include PermissionsPolicy
292
+ include RateLimiting
293
+ include AllowBrowser
294
+ include Streaming
295
+ include DataStreaming
296
+ include HttpAuthentication ::Basic ::ControllerMethods
297
+ include HttpAuthentication ::Digest ::ControllerMethods
298
+ include HttpAuthentication ::Token ::ControllerMethods
299
+ include DefaultHeaders
300
+ include Logging
301
+ # Before callbacks should also be executed as early as possible, so also include
302
+ # them at the bottom.
303
+ include AbstractController ::Callbacks
304
+ # Append rescue at the bottom to wrap as much as possible.
305
+ include Rescue
306
+ # Add instrumentations hooks at the bottom, to ensure they instrument all the
307
+ # methods properly.
308
+ include Instrumentation
309
+ # Params wrapper should come before instrumentation so they are properly showed
310
+ # in logs
311
+ include ParamsWrapper
284
312
setup_renderer!
285
313
286
314
# Define some internal variables that should not be propagated to the view.
0 commit comments