作者:mobiledu2502858037 | 来源:互联网 | 2023-09-07 10:47
Add the StrongParamers to ActionController::API. The omiitions of this module
caused the "require" method call to attempt to load files, rather than whitelist parameters
1 2 3 4 5 6 7 8
| ruby
#lib/rails-api/templates/rails/app/config/initializers/strong_parameters.rb.tt
# StrongParamters were added to Rails 4
# Rails-Api depends on Rails 4
#
# StrongParameters needs to be included in ActionController::API to work.
ActionController::API.send :include, ActionController::StrongParameters |
该提问来源于开源项目:rails-api/rails-api
Any assistance is always more than welcome. This issue is already fixed in #92