Created
August 27, 2017 16:15
-
-
Save asvetly/7ee5e21384be4d4a01e46474fc67ea88 to your computer and use it in GitHub Desktop.
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 ApplicationController < ActionController::Base | |
helper_method :filter_params | |
def filter_params | |
result = '' | |
params.except('controller', 'action').each_pair { |k, v| result += "#{k}=#{v}&" } | |
result.chop | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment