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.6.0 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.5.1 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.5.0 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.4.6 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.4.5 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.4.4 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.4.3 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.4.2 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.4.1 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.4.0 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.3.4 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.3.3 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.3.2 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.3.1 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.3.0 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.2.2 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.2.1 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.2.0 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.1.5 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.1.4 lib/brightcontent/pages/methods.rb