tag_category.rb: fix windows line endings.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user