You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that the standalone Kit model is gone and KitItem is the sole "kit"
concept, rename the STI subclass from KitItem to Kit to match the UI label,
the /kits routes, and the kit_item-free domain.
- app/models/kit_item.rb -> app/models/kit.rb (class KitItem -> Kit)
- Organization#kit_items association -> #kits
- Update all class refs, is_a? checks, the create service, events,
reports, views, seeds, factories and specs
- Migration flips the items.type discriminator 'KitItem' -> 'Kit'
- Drop two workarounds that were only needed while the class was KitItem:
- EventsHelper#eventable_path: with the class named Kit, polymorphic
routing resolves kit_path directly, so the event history row links
the eventable normally again
- the kit form's `url: kits_path, as: :kit` options: a new Kit now
infers kits_path and the :kit param key by default
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments