tag_category.rb: fix windows line endings.

This commit is contained in:
evazion
2019-12-22 21:22:27 -06:00
parent 309821bf73
commit cd442d60af

View File

@@ -2,9 +2,10 @@ class TagCategory
module Mappings module Mappings
# Returns a hash mapping various tag categories to a numerical value. # Returns a hash mapping various tag categories to a numerical value.
def mapping def mapping
@@mapping ||= Hash[ @@mapping ||=
Danbooru.config.full_tag_config_info.map {|k,v| v["extra"].map {|y| [y,v["category"]]}} Hash[
.reduce([],:+)] Danbooru.config.full_tag_config_info.map { |k, v| v["extra"].map { |y| [y, v["category"]] }}.reduce([], :+)
]
.update(Hash[Danbooru.config.full_tag_config_info.map { |k, v| [v["short"], v["category"]] }]) .update(Hash[Danbooru.config.full_tag_config_info.map { |k, v| [v["short"], v["category"]] }])
.update(Hash[Danbooru.config.full_tag_config_info.map { |k, v| [k, v["category"]] }]) .update(Hash[Danbooru.config.full_tag_config_info.map { |k, v| [k, v["category"]] }])
end end