Created
November 14, 2017 18:14
-
-
Save madzhuga/3086ef2d7afa6ff1ee24140a9413d127 to your computer and use it in GitHub Desktop.
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 ApplicationController < ActionController::Base | |
... | |
before_action :navigate_to_current_operation | |
def navigate_to_current_operation | |
return unless current_operation | |
redirect_to current_operation_path | |
end | |
... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment