Sha256: a6e5018b2e80f228c0bf8ed38e41753c88503c097b0e1df6fed9320e401882cd
Contents?: true
Size: 447 Bytes
Versions: 1
Compression:
Stored size: 447 Bytes
Contents
# frozen_string_literal: true module Servicer module Layers # Layer setting default params using deep_merge. # Example: # layer :set_default_params, { # limit: 10 # offset: 0 # } class SetDefaultParams < ::Servicer::Layers::Base def call(current_user, params) # TODO: Remove hidden dependency on ActiveSupport [current_user, @options.deep_merge(params)] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
servicer-1.0.0 | lib/servicer/layers/set_default_params.rb |