X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f051a7c1f5d1999558caa9d3cbe8c36f8ac39c9b..1bee96ede16e1dab41ad82efb9f2486da68a642f:/config/initializers/browse_icons.rb?ds=sidebyside diff --git a/config/initializers/browse_icons.rb b/config/initializers/browse_icons.rb index cb53848e8..a55df97b6 100644 --- a/config/initializers/browse_icons.rb +++ b/config/initializers/browse_icons.rb @@ -2,7 +2,9 @@ begin BROWSE_ICONS = YAML.load_file(Rails.root.join("config/browse_icons.yml")).transform_values do |tag_key_data| transformed_tag_key_data = {} tag_key_data.each do |tag_value, tag_value_data| - transformed_tag_key_data[tag_value] = tag_value_data.deep_symbolize_keys + tag_value_data = tag_value_data.deep_symbolize_keys + tag_value_data[:priority] ||= tag_value == :* ? 10 : 100 + transformed_tag_key_data[tag_value] = tag_value_data end transformed_tag_key_data end