Skip to content

Instantly share code, notes, and snippets.

@asvetly
Created August 27, 2017 16:15
Show Gist options
  • Save asvetly/7ee5e21384be4d4a01e46474fc67ea88 to your computer and use it in GitHub Desktop.
Save asvetly/7ee5e21384be4d4a01e46474fc67ea88 to your computer and use it in GitHub Desktop.
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