Created
February 18, 2017 16:51
-
-
Save mAlishera/2e108fc5fd08e1e91f6788ef55359998 to your computer and use it in GitHub Desktop.
Adding custom middleware
This file contains hidden or 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 Application < Rails::Application | |
... | |
config.middleware.insert_before "ActionDispatch::Callbacks", "MyMiddleware" | |
... | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment