Skip to content

Commit

Permalink
Merge pull request #283 from spree/feature/use_dedicated_deprecator
Browse files Browse the repository at this point in the history
Use dedicated deprecator
  • Loading branch information
rafalcymerys authored Nov 2, 2023
2 parents 978ff1c + 2fcd9da commit e90cfea
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 e90cfea

Please sign in to comment.