Created
November 14, 2017 18:11
-
-
Save madzhuga/d0a2e8b7d3aac49c47cbac6cd550b0bc 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 send(current_operation.data[:url_path], *current_operation.data[:url_params]) | |
end | |
... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment