class Trailblazer::Finder::Activities::PrepareParams

Params Activity

Public Instance Methods

invalid_params_error(_ctx, **) click to toggle source
# File lib/trailblazer/finder/activities/prepare_params.rb, line 13
def invalid_params_error(_ctx, **)
  # (ctx[:errors] ||= []) << {params: "One or more parameters are invalid"}
end
set_params(ctx, **) click to toggle source
# File lib/trailblazer/finder/activities/prepare_params.rb, line 17
def set_params(ctx, **)
  ctx[:params] = ctx[:options][:params] || {}
end
validate_params(_ctx, **) click to toggle source
# File lib/trailblazer/finder/activities/prepare_params.rb, line 8
def validate_params(_ctx, **)
  # Should probably validate some things here at some point
  true
end