tag_category.rb: fix windows line endings.
This commit is contained in:
@@ -2,9 +2,10 @@ class TagCategory
|
||||
module Mappings
|
||||
# Returns a hash mapping various tag categories to a numerical value.
|
||||
def mapping
|
||||
@@mapping ||= Hash[
|
||||
Danbooru.config.full_tag_config_info.map {|k,v| v["extra"].map {|y| [y,v["category"]]}}
|
||||
.reduce([],:+)]
|
||||
@@mapping ||=
|
||||
Hash[
|
||||
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| [k, v["category"]] }])
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user