1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use Ruby 1.9 hash syntax

This commit is contained in:
Rafael Mendonça França 2016-02-12 19:12:42 -02:00
parent 61b03f37d8
commit 3f70e8bd2d

View file

@ -1,6 +1,6 @@
<%= wrap_in_modules <<-rb.strip_heredoc
class ApplicationController < ActionController::#{api? ? "API" : "Base"}
#{ api? ? '# ' : '' }protect_from_forgery :with => :exception
#{ api? ? '# ' : '' }protect_from_forgery with: :exception
end
rb
%>