Skip to content

Commit

Permalink
fix: Add scope to service slugs
Browse files Browse the repository at this point in the history
Fixes issue with same services names across exercises
  • Loading branch information
mromulus committed Feb 20, 2024
1 parent 52b31df commit 7d73c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Service < ApplicationRecord
include VmCacheBuster
include SpecCacheUpdater
extend FriendlyId
friendly_id :name, use: :slugged, sequence_separator: '_'
friendly_id :name, use: [:slugged, :scoped], scope: :exercise, sequence_separator: '_'

has_paper_trail

Expand Down

0 comments on commit 7d73c0c

Please sign in to comment.