app/helpers/lookbook/application_helper.rb in lookbook-1.5.5 vs app/helpers/lookbook/application_helper.rb in lookbook-2.0.0.beta.0
- old
+ new
@@ -1,33 +1,17 @@
module Lookbook
module ApplicationHelper
- def config
- Lookbook::Engine.config.lookbook
- end
-
- def theme
- Lookbook.theme
- end
-
- def asset_path(file, version: true)
+ def lookbook_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
- landing = Lookbook.pages.find(&:landing?) || Lookbook.pages.first
+ def lookbook_landing_path
+ landing = Engine.pages.find(&:landing?) || Engine.pages.first
if landing.present?
lookbook_page_path landing.lookup_path
else
lookbook_home_path
end
- end
-
- def generate_id(*args)
- args.map { |args| args.delete_prefix("/").tr("&?=/_-", "-") }.join("-")
end
end
end