Skip to content

Commit 187fd93

Browse files
committed
fixup! [changeset] port pipe to use dry-transformer
1 parent 022fc62 commit 187fd93

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

changeset/lib/rom/changeset/pipe.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ class Pipe < Dry::Transformer[PipeRegistry]
3535
option :use_for_diff, optional: true, default: -> { true }
3636
option :diff_processor, default: -> { use_for_diff ? processor : nil }
3737

38-
# @api private
39-
def processor
40-
options[:processor] || transproc
41-
end
42-
4338
def self.[](name)
4439
container[name]
4540
end
@@ -48,6 +43,11 @@ def [](name)
4843
self.class[name]
4944
end
5045

46+
# @api private
47+
def processor
48+
options[:processor] || transproc
49+
end
50+
5151
def bind(context)
5252
if processor.is_a?(::Proc)
5353
self.class.new(Pipe[-> *args { context.instance_exec(*args, &processor) }])

0 commit comments

Comments
 (0)