Skip to content

Add Nested .permit(users: []) to Permit all parameters #15

@nerbyk

Description

@nerbyk

There is no way to permit all nested params. It could be great to make it possible to pass [] for permitting all nested params

class AppFunction < ActiveFunction::Base
   def index
      params.permit(data: []).to_h # =>  { data: { id: 1, text: "foobar" } }
   end
end

AppFunction.process(:index, { data: { id: 1, text: "foobar" } })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions