Skip to content

Commit

Permalink
Merge pull request #2 from TerraCycle/fix-zeitwerk-load
Browse files Browse the repository at this point in the history
fix zeitwerk autoload of helper
  • Loading branch information
storhet authored Nov 25, 2019
2 parents 680817a + 35e3321 commit cfedb8a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/helpers/spree/admin/base_helper_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Spree::BaseHelper.class_eval do
# frozen_string_literal: true

module Spree::Admin::BaseHelperDecorator
def selected?(current_insight, insight)
current_insight.eql?(insight)
end
Expand All @@ -15,3 +17,5 @@ def pdf_logo(image_path = Spree::Config[:logo])
wicked_pdf_image_tag image_path, class: 'logo'
end
end

::Spree::Admin::BaseHelper.prepend(Spree::Admin::BaseHelperDecorator)

0 comments on commit cfedb8a

Please sign in to comment.