feat(nonprofit/cards) add strong params to nonprofits/card/create
This commit is contained in:
parent
a6baf9bac3
commit
772332a5cb
1 changed files with 4 additions and 0 deletions
|
@ -27,5 +27,9 @@ module Nonprofits
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def required_params
|
||||||
|
params.require(:nonprofit_id, card: [:name, :stripe_card_token, :stripe_card_id, :holder_id, :holder_type] )
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue