Sha256: b4a84ab2fb10a5f39ca524d1254e5274dbf8c13a586d5df6b8525f1bf2981e63
Contents?: true
Size: 298 Bytes
Versions: 22
Compression:
Stored size: 298 Bytes
Contents
module Brightcontent module Pages module Methods def current_page @current_page ||= Brightcontent.page_model.find_by_path(request.path) end def current_page! @current_page ||= Brightcontent.page_model.find_by_path!(request.path) end end end end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
brightcontent-pages-2.1.3 | lib/brightcontent/pages/methods.rb |
brightcontent-pages-2.1.2 | lib/brightcontent/pages/methods.rb |