Module: RangedLotCategoriesHelper

Defined in:
app/helpers/ranged_lot_categories_helper.rb

Instance Method Summary collapse

Instance Method Details

#ranged_lot_category_tag(ranged_lot_category) ⇒ Object



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

def ranged_lot_category_tag(ranged_lot_category)
  return nil if ranged_lot_category.nil?
  ranged_lot_category.name + ': ' + ranged_lot_range(ranged_lot_category)
end

#ranged_lot_range(ranged_lot_category) ⇒ Object



8
9
10
# File 'app/helpers/ranged_lot_categories_helper.rb', line 8

def ranged_lot_range(ranged_lot_category)
  [ranged_lot_category.minimum_value, ranged_lot_category.maximum_value].compact.join('-')
end