bellycard / napa

A simple framework for building APIs with Grape
Other
329 stars 72 forks source link

ActiveModel ForbiddenAttributesProtection causing ForbiddenAttributesError on API POST #205

Closed hstrowd closed 9 years ago

hstrowd commented 9 years ago

As noted in https://github.com/intridea/grape/issues/404, without the 'hashie-forbidden_attributes' grape is unable to process post attributes due to ActiveModel's ForbiddenAttributesProtection#sanitize_for_mass_assignment method. It seems like adding the hashie-forbidden_attributes gem to the 'new' template's Gemfile would be a nice way to provide this functionality out of the box for new services.

shaqq commented 9 years ago

closed by #206