Sha256: 3009a55f8429249cb6f8ddfd9f90e1d1b97843288129f1d86d2aa613a035fb05
Contents?: true
Size: 671 Bytes
Versions: 3
Compression:
Stored size: 671 Bytes
Contents
module Lookbook module ApplicationHelper def lookbook_asset_path(file, version: true) path = "#{Engine.host_config.relative_url_root}/lookbook-assets/#{file}".gsub("//", "/") version ? "#{path}?v=#{Lookbook::VERSION}" : path end 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 # Requests def request_frame request.headers["X-Lookbook-Frame"] || "root" end def frame_request? request.headers["X-Lookbook-Frame"].present? end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lookbook-2.3.4 | app/helpers/lookbook/application_helper.rb |
lookbook-2.3.3 | app/helpers/lookbook/application_helper.rb |
lookbook-2.3.2 | app/helpers/lookbook/application_helper.rb |