Skip to content

Commit

Permalink
Use dedicated deprecator
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalcymerys committed Nov 2, 2023
1 parent 978ff1c commit 2fcd9da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/helpers/spree/admin/navigation_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def active_badge(condition, options = {})
end

def main_part_classes
ActiveSupport::Deprecation.warn(<<-DEPRECATION, caller)
Spree::Deprecation.warn(<<-DEPRECATION, caller)
Admin::NavigationHelper#main_part_classes is deprecated and will be removed in Spree 5.0.
DEPRECATION
if cookies['sidebar-minimized'] == 'true'
Expand All @@ -283,7 +283,7 @@ def main_part_classes
end

def main_sidebar_classes
ActiveSupport::Deprecation.warn(<<-DEPRECATION, caller)
Spree::Deprecation.warn(<<-DEPRECATION, caller)
Admin::NavigationHelper#main_sidebar_classes is deprecated and will be removed in Spree 5.0.
DEPRECATION
if cookies['sidebar-minimized'] == 'true'
Expand All @@ -294,7 +294,7 @@ def main_sidebar_classes
end

def wrapper_classes
ActiveSupport::Deprecation.warn(<<-DEPRECATION, caller)
Spree::Deprecation.warn(<<-DEPRECATION, caller)
Admin::NavigationHelper#wrapper_classes is deprecated and will be removed in Spree 5.0.
DEPRECATION
'sidebar-minimized' if cookies['sidebar-minimized'] == 'true'
Expand Down

0 comments on commit 2fcd9da

Please sign in to comment.