app/helpers/lookbook/application_helper.rb in lookbook-1.0.0.beta.6 vs app/helpers/lookbook/application_helper.rb in lookbook-1.0.0.beta.7
- old
+ new
@@ -2,9 +2,18 @@
module ApplicationHelper
def config
Lookbook::Engine.config.lookbook
end
+ def theme
+ Lookbook.theme
+ end
+
+ def asset_path(file, version: true)
+ path = "/lookbook-assets/#{file}".gsub("//", "/")
+ version ? "#{path}?v=#{Lookbook::VERSION}" : path
+ end
+
def feature_enabled?(name)
Lookbook::Features.enabled?(name)
end
def landing_path