diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-02-12 19:12:42 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2016-02-12 19:12:42 -0200 |
commit | 3f70e8bd2dd9d172cd0cc5d22147f3e2a8eb5c3e (patch) | |
tree | f70f5a416db70cb970f04edaf65766eb74995246 | |
parent | 61b03f37d8117c71ede59b335e493fd8016c414a (diff) | |
download | rails-3f70e8bd2dd9d172cd0cc5d22147f3e2a8eb5c3e.tar.gz rails-3f70e8bd2dd9d172cd0cc5d22147f3e2a8eb5c3e.tar.bz2 rails-3f70e8bd2dd9d172cd0cc5d22147f3e2a8eb5c3e.zip |
Use Ruby 1.9 hash syntax
-rw-r--r-- | railties/lib/rails/generators/rails/plugin/templates/app/controllers/%namespaced_name%/application_controller.rb.tt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/plugin/templates/app/controllers/%namespaced_name%/application_controller.rb.tt b/railties/lib/rails/generators/rails/plugin/templates/app/controllers/%namespaced_name%/application_controller.rb.tt index 83807f14b4..abbacd9bec 100644 --- a/railties/lib/rails/generators/rails/plugin/templates/app/controllers/%namespaced_name%/application_controller.rb.tt +++ b/railties/lib/rails/generators/rails/plugin/templates/app/controllers/%namespaced_name%/application_controller.rb.tt @@ -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 %> |