mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 05:25:16 -05:00
FEATURE: Rake themes installer (#7848)
* Delete remote_theme when deleting the theme * Install themes and theme components through rake * Removed unnecessary test
This commit is contained in:
committed by
Robin Ward
parent
72bac61c90
commit
1318e0b288
+1
-1
@@ -22,7 +22,7 @@ class Theme < ActiveRecord::Base
|
||||
has_many :child_themes, -> { order(:name) }, through: :child_theme_relation, source: :child_theme
|
||||
has_many :parent_themes, -> { order(:name) }, through: :parent_theme_relation, source: :parent_theme
|
||||
has_many :color_schemes
|
||||
belongs_to :remote_theme, autosave: true
|
||||
belongs_to :remote_theme, autosave: true, dependent: :destroy
|
||||
|
||||
has_one :settings_field, -> { where(target_id: Theme.targets[:settings], name: "yaml") }, class_name: 'ThemeField'
|
||||
has_one :javascript_cache, dependent: :destroy
|
||||
|
||||
Reference in New Issue
Block a user