diff --git a/plugin.rb b/plugin.rb index 97f9f3c..a460a8b 100644 --- a/plugin.rb +++ b/plugin.rb @@ -15,6 +15,7 @@ after_initialize do header_script = '' discourse_donations_theme = Theme.find_or_create_by(name: 'Discourse Donations Header', hidden: false, user_id: -1) discourse_donations_theme.set_field('common', 'head_tag', header_script) + discourse_donations_theme.save end Discourse::Application.routes.prepend do