Skip to content

Instantly share code, notes, and snippets.

@koss-lebedev
Created May 3, 2019 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koss-lebedev/ce889ee168dc6b5f6cf5e9519a447775 to your computer and use it in GitHub Desktop.
Save koss-lebedev/ce889ee168dc6b5f6cf5e9519a447775 to your computer and use it in GitHub Desktop.
def contact_params
params.require(:contact).permit(
*Contact.new.dynamic_attributes.map(&:name), :first_name)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment