Skip to content

Instantly share code, notes, and snippets.

@bryanmikaelian
Created April 12, 2015 02:34
Show Gist options
  • Save bryanmikaelian/7b61a60f4dc1b581df9c to your computer and use it in GitHub Desktop.
Save bryanmikaelian/7b61a60f4dc1b581df9c to your computer and use it in GitHub Desktop.
ActionController::Metal Necessary Modules
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
@bryanmikaelian
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment