2 ms·
With keyword arguments there are a lot of cases when we do things like def call(batch_id:, language: ) end batch_id = find_batch_id_from_condition
by gls2ro 5y ago
With keyword arguments there are a lot of cases when we do things like
def call(batch_id:, language: )
end
batch_id = find_batch_id_from_conditions(conditions)
language = load_language_settings(user.id)
call(batch_id: batch_id, language: language)
For me, I would gladly replace the last method with call(batch_id:, language:)