Add additional social media fields to contacts

+ YouTube
+ Blog

Simplify logic in the view, and refactor the test #BetterPlace
This commit is contained in:
James Mason 2018-11-13 13:47:20 -08:00 committed by Henne Vogelsang
parent cd150aaf21
commit a3adf8318d
6 changed files with 51 additions and 35 deletions

View file

@ -24,7 +24,9 @@ module Admin
# Only allow a trusted parameter "white list" through.
def contact_params
params.require(:contact).permit(:social_tag, :email, :facebook, :googleplus, :twitter, :instagram, :mastodon, :public, :sponsor_email)
params.require(:contact).permit(
:social_tag, :email, :facebook, :googleplus, :twitter, :instagram,
:mastodon, :public, :sponsor_email, :youtube, :blog)
end
end
end