From fb5c94246c7ce11dc9154962a35ae46df79fc1b7 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 28 Jan 2019 16:00:33 +0000 Subject: [PATCH] DEV: Remove underscore from `learn_more` key in theme export Follow up from 033cd4f3 --- app/models/theme.rb | 2 +- spec/components/theme_store/tgz_exporter_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/theme.rb b/app/models/theme.rb index fe4375c4bdf..3b0be21fef0 100644 --- a/app/models/theme.rb +++ b/app/models/theme.rb @@ -455,7 +455,7 @@ class Theme < ActiveRecord::Base end end - meta[:_learn_more] = "https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966" + meta[:learn_more] = "https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966" end end diff --git a/spec/components/theme_store/tgz_exporter_spec.rb b/spec/components/theme_store/tgz_exporter_spec.rb index eb3104e3c32..fb9f32d44f5 100644 --- a/spec/components/theme_store/tgz_exporter_spec.rb +++ b/spec/components/theme_store/tgz_exporter_spec.rb @@ -89,7 +89,7 @@ describe ThemeStore::TgzExporter do "tertiary": "858585" } }, - "_learn_more": "https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966" + "learn_more": "https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966" ) expect(File.read("common/body_tag.html")).to eq("testtheme1")