PERF: Remove extra PG query.
In `Theme.list_baked_fields`, common is always included as a target.
This commit is contained in:
parent
b36396d925
commit
5f8f139ac9
|
@ -395,8 +395,7 @@ class Stylesheet::Manager
|
|||
|
||||
def theme_digest
|
||||
if [:mobile_theme, :desktop_theme].include?(@target)
|
||||
scss_digest = theme.resolve_baked_field(:common, :scss)
|
||||
scss_digest += theme.resolve_baked_field(@target.to_s.sub("_theme", ""), :scss)
|
||||
scss_digest = theme.resolve_baked_field(@target.to_s.sub("_theme", ""), :scss)
|
||||
elsif @target == :embedded_theme
|
||||
scss_digest = theme.resolve_baked_field(:common, :embedded_scss)
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue