westonganger / protected_attributes_continued

The community continued version of protected_attributes for Rails 5+
MIT License
45 stars 33 forks source link

Fix nested attributes for has_one #7

Closed kuahyeow closed 7 years ago

kuahyeow commented 7 years ago

with_indifferent_access is no longer present on ActionController::Parameters in Rails 5.1

So convert to hash first, as per assign_nested_attributes_for_collection_association

Fixes #6