stop removing "item" from zone plain labels: background vs. backgrounditem
This commit is contained in:
parent
d0dffd6cff
commit
e6d9e5ee75
1 changed files with 1 additions and 5 deletions
|
@ -23,10 +23,6 @@ class Zone < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def self.plainify_label(label)
|
||||
plain_label = label.delete('\- /').downcase
|
||||
if plain_label.end_with?('item')
|
||||
plain_label = plain_label[0..-5]
|
||||
end
|
||||
plain_label
|
||||
label.delete('\- /').downcase
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue