Skip to content

Commit

Permalink
remove per_form_csrf_tokens initializer from Rails API
Browse files Browse the repository at this point in the history
Because the form is not in the Rails API,
`per_form_csrf_tokens` initializer I think unnecessary.
  • Loading branch information
y-yagi committed Jan 22, 2016
1 parent 5d9e923 commit 82deb76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions railties/lib/rails/generators/rails/app/app_generator.rb
Expand Up @@ -327,6 +327,7 @@ def delete_non_api_initializers_if_api_option
remove_file 'config/initializers/session_store.rb'
remove_file 'config/initializers/cookies_serializer.rb'
remove_file 'config/initializers/request_forgery_protection.rb'
remove_file 'config/initializers/per_form_csrf_tokens.rb'
end
end

Expand Down
1 change: 1 addition & 0 deletions railties/test/generators/api_app_generator_test.rb
Expand Up @@ -89,6 +89,7 @@ def skipped_files
config/initializers/cookies_serializer.rb
config/initializers/session_store.rb
config/initializers/request_forgery_protection.rb
config/initializers/per_form_csrf_tokens.rb
lib/assets
vendor/assets
test/helpers
Expand Down

0 comments on commit 82deb76

Please sign in to comment.