Module: SuppliersHelper

Defined in:
app/helpers/suppliers_helper.rb

Instance Method Summary collapse

Instance Method Details

#associated_supplier_names(shared_supplier) ⇒ Object


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

def associated_supplier_names(shared_supplier)
  "(#{shared_supplier.suppliers.map(&:name).join(', ')})"
end

#shared_sync_method_collection(shared_supplier) ⇒ Object


7
8
9
10
11
# File 'app/helpers/suppliers_helper.rb', line 7

def shared_sync_method_collection(shared_supplier)
  shared_supplier.shared_sync_methods.map do |m|
    [t("suppliers.shared_supplier_methods.#{m}"), m]
  end
end