Module: Polaris::ViewComponents::Codemods

Defined in:
lib/polaris/view_components/codemods/v3_slot_setters.rb

Overview

Usage:

Run via rake task:

bin/rails polaris_view_components:detect_legacy_slots
bin/rails polaris_view_components:migrate_legacy_slots
bin/rails polaris_view_components:migrate_legacy_slots app/views

Or run via rails console if you need to pass custom paths:

Polaris::ViewComponents::Codemods::V3SlotSetters.new(
  view_path: Rails.root.join("app/views"),
).call

Defined Under Namespace

Classes: V3SlotSetters