Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Edit Manufacturer #5

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Edit Manufacturer #5

wants to merge 3 commits into from

Conversation

jaredfitton
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@shereenElSayed shereenElSayed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a function defined 2 times

params.require(:manufacturer).permit(:email, :telephone)
end

def manufacturer_update_params
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the function defined two times?

Copy link
Collaborator Author

@jaredfitton jaredfitton Nov 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shereenElSayed because when updating we only want to update a users email or telephone.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants