diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2018-04-08 16:27:27 +1100 |
---|---|---|
committer | blackst0ne <blackst0ne.ru@gmail.com> | 2018-04-08 16:27:27 +1100 |
commit | 2ee53feea8903b0c40c93b2b14aebd6991c46754 (patch) | |
tree | 6673a3cdc6b1d6b0dc413db6d1b0d97173544d20 | |
parent | eddf3febd7e78a442a0b2fbd36d7b92ba769f4a5 (diff) | |
download | gitlab-ce-2ee53feea8903b0c40c93b2b14aebd6991c46754.tar.gz |
Fix typos in comments [ci skip]blackst0ne-rails5-add-safe-params-helper
-rw-r--r-- | app/helpers/safe_params_helper.rb | 4 |
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! |