Skip to content

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

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" } })

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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