Module: Spree::IntegrationsHelper

Defined in:
app/helpers/spree/integrations_helper.rb

Instance Method Summary collapse

Instance Method Details

#grouped_available_store_integrationsObject



11
12
13
# File 'app/helpers/spree/integrations_helper.rb', line 11

def grouped_available_store_integrations
  Spree.integrations.group_by(&:integration_group).sort_by { |group, _| group }
end

#store_integration(name) ⇒ Object



7
8
9
# File 'app/helpers/spree/integrations_helper.rb', line 7

def store_integration(name)
  store_integrations.find { |integration| integration.type.to_s.demodulize.underscore == name }
end

#store_integrationsObject



3
4
5
# File 'app/helpers/spree/integrations_helper.rb', line 3

def store_integrations
  @store_integrations ||= current_store.integrations.active.to_a
end