aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2015-12-05 08:53:05 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2015-12-06 12:41:02 +0900
commitcf8a41e1305bb7445f09f7ced481fee0619c0ce5 (patch)
tree231608b233f0b817aa11617f5b3f80b64922a172 /railties/lib
parent2b6557e70a62158c87f744082f2044524f4f6257 (diff)
downloadrails-cf8a41e1305bb7445f09f7ced481fee0619c0ce5.tar.gz
rails-cf8a41e1305bb7445f09f7ced481fee0619c0ce5.tar.bz2
rails-cf8a41e1305bb7445f09f7ced481fee0619c0ce5.zip
remove `request_forgery_protection` initializer from rails api
In rails api, since default is so as not to use the `protect_from_forgery`, `request_forgery_protection` initializer I think that's unnecessary
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/generators/rails/app/app_generator.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb
index b813b083f4..889154494d 100644
--- a/railties/lib/rails/generators/rails/app/app_generator.rb
+++ b/railties/lib/rails/generators/rails/app/app_generator.rb
@@ -303,6 +303,7 @@ module Rails
if options[:api]
remove_file 'config/initializers/session_store.rb'
remove_file 'config/initializers/cookies_serializer.rb'
+ remove_file 'config/initializers/request_forgery_protection.rb'
end
end