Skip to content

Commit

Permalink
Include webui helpers, and not project helpers
Browse files Browse the repository at this point in the history
As no longer needed Bento helpers were removed from
Webui::PackageHelper, there is no need to include
Webui::ProjectHelper.

We need to include Webui::WebuiHelper, as there are still
helpers from webui that are used in packages views. For example
"elide".
  • Loading branch information
eduardoj committed Sep 2, 2019
1 parent 62cb9e0 commit 98aba55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/app/helpers/webui/package_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module Webui::PackageHelper
include Webui::WebuiHelper

def removable_file?(file_name:, package:)
!file_name.start_with?('_service:') && !package.belongs_to_product?
end
Expand Down Expand Up @@ -43,8 +45,6 @@ def guess_code_class(filename)
end
end

include Webui::ProjectHelper

def nbsp(text)
result = ''.html_safe
text.split(' ').each do |text_chunk|
Expand Down

0 comments on commit 98aba55

Please sign in to comment.