mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix a few more rubocop issues manually
This commit is contained in:
@@ -55,7 +55,6 @@ Metrics/LineLength:
|
||||
- app/helpers/angular_form_helper.rb
|
||||
- app/helpers/checkout_helper.rb
|
||||
- app/helpers/enterprises_helper.rb
|
||||
- app/helpers/footer_links_helper.rb
|
||||
- app/helpers/injection_helper.rb
|
||||
- app/helpers/markdown_helper.rb
|
||||
- app/helpers/order_cycles_helper.rb
|
||||
|
||||
@@ -2,10 +2,17 @@ require 'web/cookies_consent'
|
||||
|
||||
module FooterLinksHelper
|
||||
def cookies_policy_link
|
||||
link_to( t( '.footer_data_cookies_policy' ), '', 'cookies-policy-modal' => true, 'cookies-banner' => !Web::CookiesConsent.new(cookies, request.host).exists? && Spree::Config.cookies_consent_banner_toggle)
|
||||
link_to( t( '.footer_data_cookies_policy' ),
|
||||
'',
|
||||
'cookies-policy-modal' => true,
|
||||
'cookies-banner' => !Web::CookiesConsent.new(cookies, request.host).exists? &&
|
||||
Spree::Config.cookies_consent_banner_toggle)
|
||||
end
|
||||
|
||||
def privacy_policy_link
|
||||
link_to( t( '.footer_data_privacy_policy' ), Spree::Config.privacy_policy_url, target: '_blank', rel: 'noopener' )
|
||||
link_to( t( '.footer_data_privacy_policy' ),
|
||||
Spree::Config.privacy_policy_url,
|
||||
target: '_blank',
|
||||
rel: 'noopener' )
|
||||
end
|
||||
end
|
||||
|
||||
@@ -138,8 +138,7 @@ module ProductImport
|
||||
|
||||
def primary_producer_error(entry)
|
||||
return if import_into_inventory?
|
||||
return if @spreadsheet_data.
|
||||
enterprises_index[entry.enterprise][:is_primary_producer]
|
||||
return if @spreadsheet_data.enterprises_index[entry.enterprise][:is_primary_producer]
|
||||
|
||||
mark_as_invalid(entry,
|
||||
attribute: enterprise_field,
|
||||
|
||||
Reference in New Issue
Block a user