Sha256: 5cf19b2b5a958b55a6e3c5d9b0da4ec05e1031a2ce2b529ad856509594bd2932
Contents?: true
Size: 515 Bytes
Versions: 2
Compression:
Stored size: 515 Bytes
Contents
module Lookbook module ApplicationHelper def config Lookbook::Engine.config.lookbook end def feature_enabled?(name) Lookbook::Features.enabled?(name) end def landing_path landing = Lookbook.pages.find(&:landing) || Lookbook.pages.first if landing.present? page_path(landing.lookup_path) else home_path end end def generate_id(*args) args.map { |args| args.delete_prefix("/").tr("&?=/_\-", "-") }.join("-") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lookbook-1.0.0.beta.1 | app/helpers/lookbook/application_helper.rb |
lookbook-1.0.0.beta.0 | app/helpers/lookbook/application_helper.rb |