example/rails5/app/controllers/people_controller.rb in yamls-0.2.0 vs example/rails5/app/controllers/people_controller.rb in yamls-0.2.1
- old
+ new
@@ -46,10 +46,10 @@
# Only allow a trusted parameter "white list" through.
def person_params
Yamls::Parameters.new(
params,
- model: :people,
+ model: :person,
action: :post
).permit
end
end