Browse Source

class for item_label

pull/643/head
JG 3 years ago
parent
commit
2d4c05350c
  1. 5
      app/helpers/item_label_helper.rb

5
app/helpers/item_label_helper.rb

@ -0,0 +1,5 @@
module ItemLabelHelper
def format_label(count, item)
count > 1 ? item.pluralize : item
end
end
Loading…
Cancel
Save