Skip to content

Instantly share code, notes, and snippets.

@thomsbg
Created July 2, 2018 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomsbg/b805f2610c3b1ca7fc2e94dafccfce1b to your computer and use it in GitHub Desktop.
Save thomsbg/b805f2610c3b1ca7fc2e94dafccfce1b to your computer and use it in GitHub Desktop.
diff --git a/app/services/slug_change_service.rb b/app/services/slug_change_service.rb
index 590f3915de4..683a8dc3a2e 100644
--- a/app/services/slug_change_service.rb
+++ b/app/services/slug_change_service.rb
@@ -30,7 +30,7 @@ def modify_page_slug!
end
def modify_stack_slug!
- modify_legacy_slug!(@entry.slug)
+ result = modify_legacy_slug!(@entry.slug)
# If stack slug was successfully changed to the new valid slug,
# cycle through cards within stack and create legacy slug for it
@@ -45,6 +45,8 @@ def modify_stack_slug!
modify_entry_slug!(card, legacy_card_slug, new_card_slug)
end
end
+
+ result
end
def modify_legacy_slug!(old_slug_string)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment