Commit e74e4b88 authored by Savas Vedova's avatar Savas Vedova

Merge branch 'better-errors-editor-usage' into 'master'

Fix BetterErrors.editor usage in Sherlock templates

See merge request gitlab-org/gitlab!69851
parents ec5c859d 4748d764
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
%li %li
%strong %strong
- if defined?(BetterErrors) - if defined?(BetterErrors)
= link_to(location.path, BetterErrors.editor[location.path, location.line]) = link_to(location.path, BetterErrors.editor.url(location.path, location.line))
- else - else
= location.path = location.path
%small.light %small.light
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#{t('sherlock.origin')}: #{t('sherlock.origin')}:
%strong %strong
- if defined?(BetterErrors) - if defined?(BetterErrors)
= link_to(frame.path, BetterErrors.editor[frame.path, frame.line]) = link_to(frame.path, BetterErrors.editor.url(frame.path, frame.line))
- else - else
= frame.path = frame.path
%small.light %small.light
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment