Sha256: 65b649b0cb1129eab2ce3924d9e679d3cf394c0d33f2d9585c1782fe28d074eb

Contents?: true

Size: 258 Bytes

Versions: 1

Compression:

Stored size: 258 Bytes

Contents

module Brightcontent
  module Pages
    module Methods
      def current_page
        @current_page ||= Page.find_by_path(request.path)
      end

      def current_page!
        @current_page ||= Page.find_by_path!(request.path)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
brightcontent-pages-2.1.1 lib/brightcontent/pages/methods.rb