Sha256: 57b86577a55e427e254f9b8ac3e451dddea4ddcb669f53b5c245f86b9879e7ea
Contents?: true
Size: 746 Bytes
Versions: 1
Compression:
Stored size: 746 Bytes
Contents
class Spree::StaticContentController < Spree::StoreController helper 'spree/products' layout :determine_layout def show @page = Spree::Page.by_store(current_store).visible.find_by_slug!(request.path_info) # Assign static_content to let solidus recognize it as the current # controller resource, this is used by meta tags and in other places. @static_content = @page @taxonomies = Spree::Taxonomy.includes(root: :children) end private def determine_layout return @page.layout if @page and @page.layout.present? and not @page.render_layout_as_partial? Spree::Config.layout end def accurate_title @page ? (@page.meta_title.present? ? @page.meta_title : @page.title) : nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_static_content-2.0.0 | lib/controllers/frontend/spree/static_content_controller.rb |