Skip to content

strong params #13

@rlmattax

Description

@rlmattax

Do you guys have any suggestions on how to make the strong params suck less?

On the activity model:
galleryable :briefing_gallery, :debriefing_gallery

In the activities controller:
params.require(:activity).permit([:name, :description, :start_at, :end_at,
:briefing_gallery_attributes=>{:asset_attachments_attributes=>[:id,:asset_id,:sort_order]},
:debriefing_gallery_attributes=>{:asset_attachments_attributes=>[:id,:asset_id,:sort_order]}])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions