lib/trailblazer/finder/activities/prepare_adapter.rb in trailblazer-finder-0.91.0 vs lib/trailblazer/finder/activities/prepare_adapter.rb in trailblazer-finder-0.92.0
- old
+ new
@@ -3,10 +3,10 @@
module Trailblazer
class Finder
module Activities
class PrepareAdapter < Trailblazer::Activity::Railway
def set_adapter(ctx, **)
- ctx[:adapter] = ctx.dig(:config, :adapter) || "Basic"
+ ctx[:adapter] = ctx[:config].adapter
end
def validate_adapter(_ctx, adapter:, **)
ORM_ADAPTERS.(adapter.to_s)
end