diff --git a/app/helpers/strong_params_helper.rb b/app/helpers/strong_params_helper.rb index 8f8a26bf..f248cc50 100644 --- a/app/helpers/strong_params_helper.rb +++ b/app/helpers/strong_params_helper.rb @@ -8,9 +8,8 @@ module StrongParamsHelper # @todo No hay una forma mejor de hacer esto? # @param param [Symbol] # @param :optional [Bool] - # @param :params [StrongParameters] # @return [nil,String] - def pluck_param(param, optional: false, params: params) + def pluck_param(param, optional: false) if optional params.permit(param).values.first.presence else