lib/eco/api/usecases/base_io.rb in eco-helpers-1.5.1 vs lib/eco/api/usecases/base_io.rb in eco-helpers-1.5.2

- old
+ new

@@ -65,13 +65,13 @@ }.merge(kargs) self.class.new(**default.merge(kargs)) end # Helper to build a `Hash` of symbol keys or `Array` with params to do callbacks. - def params(keyed: false) + def params(keyed: false, all: false) kargs = {} - kargs.merge!(input: input) if input_required? - kargs.merge!(people: people) if people_required? + kargs.merge!(input: input) if input_required? || all + kargs.merge!(people: people) if people_required? || all kargs.merge!(session: session, options: options) keyed ? kargs : kargs.values end private