Use the hashie-forbideen_attributes gem
This gem prevents Mash from responding to :permitted?, disabling mass assignment protection for the Grape API
Showing
... | ... | @@ -73,6 +73,9 @@ gem 'grape', '~> 0.19.0' |
gem 'grape-entity', '~> 0.6.0' | ||
gem 'rack-cors', '~> 0.4.0', require: 'rack/cors' | ||
# Disable strong_params so that Mash does not respond to :permitted? | ||
gem 'hashie-forbidden_attributes' | ||
# Pagination | ||
gem 'kaminari', '~> 0.17.0' | ||
... | ... |
Please register or sign in to comment