Commit 3400cf9e authored by Rajendra Kadam's avatar Rajendra Kadam Committed by Peter Leitzen

Move prepend to last line in helpers

parent 10d20285
# frozen_string_literal: true
module FormHelper
prepend_if_ee('::EE::FormHelper') # rubocop: disable Cop/InjectEnterpriseEditionModule
def form_errors(model, type: 'form', truncate: [])
return unless model.errors.any?
......@@ -79,3 +77,5 @@ module FormHelper
new_options
end
end
FormHelper.prepend_if_ee('::EE::FormHelper')
# frozen_string_literal: true
module SortingHelper
prepend_if_ee('::EE::SortingHelper') # rubocop: disable Cop/InjectEnterpriseEditionModule
def sort_options_hash
{
sort_value_created_date => sort_title_created_date,
......@@ -584,3 +582,5 @@ module SortingHelper
'expired_asc'
end
end
SortingHelper.prepend_if_ee('::EE::SortingHelper')
---
title: Move prepend to last line in helper files
merge_request: 29327
author: Rajendra Kadam
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment