Module: SuppliersHelper
- Defined in:
- app/helpers/suppliers_helper.rb
Instance Method Summary collapse
- #associated_supplier_names(shared_supplier) ⇒ Object
- #shared_sync_method_collection(shared_supplier) ⇒ Object
Instance Method Details
#associated_supplier_names(shared_supplier) ⇒ Object
2 3 4 |
# File 'app/helpers/suppliers_helper.rb', line 2 def associated_supplier_names(shared_supplier) "(#{shared_supplier.suppliers.map(&:name).join(', ')})" end |
#shared_sync_method_collection(shared_supplier) ⇒ Object
6 7 8 9 10 |
# File 'app/helpers/suppliers_helper.rb', line 6 def shared_sync_method_collection(shared_supplier) shared_supplier.shared_sync_methods.map do |m| [t("suppliers.shared_supplier_methods.#{m}"), m] end end |