app/controllers/lookbook/application_controller.rb in lookbook-1.0.0.beta.0 vs app/controllers/lookbook/application_controller.rb in lookbook-1.0.0.beta.1
- old
+ new
@@ -22,10 +22,10 @@
end
protected
def generate_theme_overrides
- @theme_overrides = Lookbook::Theme.new(Lookbook.config.ui_theme_overrides).to_css
+ @theme_overrides ||= Lookbook::Theme.new(Lookbook.config.ui_theme_overrides).to_css
end
def feature_enabled?(feature)
Lookbook::Features.enabled?(feature)
end