Skip to content

Commit

Permalink
Merge pull request #33620 from bogdanvlviv/fix-rubocop-offenses
Browse files Browse the repository at this point in the history
Fix rubocop offenses
  • Loading branch information
kamipo committed Aug 15, 2018
2 parents 111643b + ea37ccd commit 7e3a0a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class InvalidCrossOriginRequest < ActionControllerError #: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
Expand Down
2 changes: 1 addition & 1 deletion tasks/release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
current_contents = File.read(fname)

header = "## Rails #{version} (#{Date.today.strftime('%B %d, %Y')}) ##\n\n"
header += "* No changes.\n\n\n" if current_contents =~ /\A##/
header += "* No changes.\n\n\n" if current_contents.start_with?("##")
contents = header + current_contents
File.write(fname, contents)
end
Expand Down

0 comments on commit 7e3a0a9

Please sign in to comment.