Module: Auctify::SalesHelper
- Defined in:
- app/helpers/auctify/sales_helper.rb
Instance Method Summary collapse
Instance Method Details
#auctify_id_options_for_select(type) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'app/helpers/auctify/sales_helper.rb', line 5 def (type) opts = [] Auctify::Behaviors.registered_classes_as(type).each do |klass| opts += klass.all.collect { |obj| [obj.name, obj.auctify_id] } end opts end |