remove auto create theme

This commit is contained in:
Rimian Perkins
2017-05-25 08:59:11 +10:00
parent aba89d140e
commit 850ddd1cf7
2 changed files with 3 additions and 16 deletions
+1 -7
View File
@@ -1,6 +1,6 @@
# name: discourse-donations
# about: Integrating Discourse with Stripe for donations
# version: 1.10.2
# version: 1.11.0
# url: https://github.com/choiceaustralia/discourse-donations
# authors: Rimian Perkins
@@ -12,12 +12,6 @@ enabled_site_setting :discourse_donations_enabled
after_initialize do
load File.expand_path('../app/jobs/jobs.rb', __FILE__)
# Must be placed on every page for fraud protection.
header_script = '<script src="https://js.stripe.com/v3/"></script>'
discourse_donations_theme = Theme.find_or_create_by(name: 'Discourse Donations Header', hidden: false, user_id: -1)
discourse_donations_theme.set_field(target: 'common', name: 'head_tag', value: header_script)
discourse_donations_theme.save
end
Discourse::Application.routes.prepend do