summaryrefslogtreecommitdiff
path: root/app/helpers/safe_params_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/safe_params_helper.rb')
-rw-r--r--app/helpers/safe_params_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/safe_params_helper.rb b/app/helpers/safe_params_helper.rb
index feacd3eef4a..b568e8810cc 100644
--- a/app/helpers/safe_params_helper.rb
+++ b/app/helpers/safe_params_helper.rb
@@ -1,6 +1,6 @@
module SafeParamsHelper
- # Rails 5.0 requires to permit parameters if used in url helpers.
- # User this helper when generating links with `params.merge(...)`
+ # Rails 5.0 requires to permit `params` if they're used in url helpers.
+ # Use this helper when generating links with `params.merge(...)`
def safe_params
if params.respond_to?(:permit!)
params.except(:host, :port, :protocol).permit!