diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-08-15 08:34:31 +0300 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-08-15 08:34:31 +0300 |
commit | ea37ccddba06466ddcde67d6c2814e401d1e2c5c (patch) | |
tree | 07ac98becd0ef0dc84b33c2a4e024de6a6c8d76d /actionpack/lib | |
parent | e715a64732f7b2f82aa809e59cfee83f892795f1 (diff) | |
download | rails-ea37ccddba06466ddcde67d6c2814e401d1e2c5c.tar.gz rails-ea37ccddba06466ddcde67d6c2814e401d1e2c5c.tar.bz2 rails-ea37ccddba06466ddcde67d6c2814e401d1e2c5c.zip |
Fix rubocop offenses
- Layout/TrailingWhitespace
```
actionpack/lib/action_controller/metal/request_forgery_protection.rb:49:4:
C: Layout/TrailingWhitespace: Trailing whitespace detected.
#
^
```
Related to c3787494eda
- Performance/StartWith
```
tasks/release.rb:108:44: C: Performance/StartWith:
Use String#start_with? instead of a regex match anchored to the beginning of the string.
header += "* No changes.\n\n\n" if current_contents =~ /\A##/
```
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/metal/request_forgery_protection.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/request_forgery_protection.rb b/actionpack/lib/action_controller/metal/request_forgery_protection.rb index ea637c8150..7ed7b9d546 100644 --- a/actionpack/lib/action_controller/metal/request_forgery_protection.rb +++ b/actionpack/lib/action_controller/metal/request_forgery_protection.rb @@ -46,7 +46,7 @@ module ActionController #:nodoc: # allowed via {CORS}[https://en.wikipedia.org/wiki/Cross-origin_resource_sharing] # will also be able to create XHR requests. Be sure to check your # CORS whitelist before disabling forgery protection for XHR. - # + # # CSRF protection is turned on with the <tt>protect_from_forgery</tt> method. # By default <tt>protect_from_forgery</tt> protects your session with # <tt>:null_session</tt> method, which provides an empty session |