mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Add additional social media fields to contacts
+ YouTube + Blog Simplify logic in the view, and refactor the test #BetterPlace
This commit is contained in:
parent
cd150aaf21
commit
a3adf8318d
6 changed files with 51 additions and 35 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue