1
0

Changed Unit.type -> .group

Added Unit validations. Added default Units.
This commit is contained in:
cryptogopher
2019-08-16 19:29:23 +02:00
parent 8082e42225
commit fea736bd36
5 changed files with 26 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
module UnitsHelper
def type_options
translations = t('.types')
Unit.types.map { |k,v| [translations[k.to_sym], k] }
def group_options
translations = t('.groups')
Unit.groups.map { |k,v| [translations[k.to_sym], k] }
end
end