coreSegmentFault/view_delegates

View on GitHub
app/controllers/view_delegate_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
# View delegate minimal controller for rendering
class ViewDelegateController < ActionController::Base
  # Unnecesary modules to remove
  MODULES = [
    ActionController::ConditionalGet,
    ActionController::EtagWithTemplateDigest,
    ActionController::EtagWithFlash,
    ActionController::ImplicitRender,
    ActionController::StrongParameters,
    ActionController::ParameterEncoding,
    ActionController::Flash
  ].freeze
  without_modules MODULES
end