Skip to content

Commit

Permalink
Merge pull request #178 from melcha/master
Browse files Browse the repository at this point in the history
Fix for SystemStackError (stack level too deep) issue in production (#80)
  • Loading branch information
damianlegawiec authored Nov 15, 2017
2 parents 524c316 + d54aa0a commit fac90f9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
10 changes: 10 additions & 0 deletions app/helpers/spree/admin/decorated_navigation_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module Spree
module Admin
module DecoratedNavigationHelper
def link_to_with_icon(icon_name, text, url, options = {})
icon_name = 'capture' if icon_name.eql?('settle')
super
end
end
end
end
8 changes: 0 additions & 8 deletions app/helpers/spree/admin/navigation_helper_decorator.rb

This file was deleted.

1 change: 1 addition & 0 deletions config/initializers/prepend_helpers.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Spree::Admin::NavigationHelper.prepend(Spree::Admin::DecoratedNavigationHelper)

0 comments on commit fac90f9

Please sign in to comment.