Created
April 12, 2015 02:34
-
-
Save bryanmikaelian/7b61a60f4dc1b581df9c to your computer and use it in GitHub Desktop.
ActionController::Metal Necessary Modules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MetalController < ActionController::Metal | |
include AbstractController::Rendering | |
include ActionView::Layouts | |
include ActionController::Serialization | |
include ActionController::Rendering | |
include ActionController::Renderers::All | |
include ActionController::Redirecting | |
include AbstractController::Callbacks | |
include AbstractController::Helpers | |
include ActionController::ParamsWrapper | |
include ActionController::MimeResponds | |
include ActionController::ImplicitRender | |
include ActionController::ForceSSL | |
include ActionController::Instrumentation | |
include ActionController::RequestForgeryProtection | |
include ActionController::StrongParameters | |
include ActionController::Rescue | |
include ActionController::HttpAuthentication::Token::ControllerMethods | |
include Rails.application.routes.url_helpers | |
# If you use Devise, uncomment the next line | |
# include Devise::Controllers::Helpers | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is by no means the official list. These are just all the modules I have had to use to get ActionController::Metal to meet my needs.
Feel free to contribute and improve this list!