I would like to know if you can pass parameters to a named parameter method via hash. Can you review the remaining parameters for another function as in the example below?
params = {key: "value",key2: "value2"}
def func(key1: nil, key2: nil, **args)
other_func **args
...
end
func params
Problem with rails:
#No controle
@session = SessionUser.new(params[:session_user].merge(session: session))
# classe SessionUser
def initialize(session: nil, email: nil, password: nil, **args)
@session = session
@email = email
@password = password
end