Class: Sinicum::Content::WebsiteContentResolver

Inherits:
Object
  • Object
show all
Defined in:
lib/sinicum/content/website_content_resolver.rb

Overview

Public: Fetches the content from Magnolia based on the path of the request.

Class Method Summary collapse

Class Method Details

.find_for_path(path) ⇒ Object



5
6
7
# File 'lib/sinicum/content/website_content_resolver.rb', line 5

def self.find_for_path(path)
  ::Sinicum::Jcr::Node.find_by_path(:website, path) if path
end