app/helpers/authentication.rb
def user_params(params)
    params.each_with_object({}) do |(key,value), obj|
      obj[key] = value if valid_params.include?(key.to_sym)
    end
  end
# Validation for the creation of a new User object
Validation for the creation of a new User object
Validation for the creation of a new User object
def user_params(params)
    params.each_with_object({}) do |(key,value), obj|
      obj[key] = value if valid_params.include?(key.to_sym)
    end
  end
def user_params ( params ) params . each_with_object ( { } ) do | ( key , value ) , obj | obj [ key ] = value if valid_params . include? ( key . to_sym ) end end
Validation for the creation of a new User object
Validation for the creation of a new User object
params