class Finder
Public Instance Methods
call(ctx, options, **)
click to toggle source
# File lib/trailblazer/operation/finder.rb, line 15 def call(ctx, options, **) builder = Finder::Builder.new ctx[:finder] = finder = builder.call(options, options[:params]) ctx[:model] = finder # Don't like it, but somehow it's needed if contracts are loaded ctx[:"result.finder"] = Trailblazer::Operation::Result.new(!finder.nil?, {}) ctx[:"result.finder"].success? end