Use strong params in profiles_controller
This commit is contained in:
parent
d6ba6d1b02
commit
94e9fc5ac4
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ class ProfilesController < ApplicationController
|
|||
|
||||
def update
|
||||
# upload and set new profile photo
|
||||
@profile_attrs = params[:profile] || {}
|
||||
@profile_attrs = params.require(:profile).permit(:first_name, :last_name, :gender, :bio, :location, :searchable, :tag_string, :nsfw, :date => [:year, :month, :day]) || {}
|
||||
|
||||
munge_tag_string
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue