Sha256: 4cc6f8cb7f4a5c229a34e950eeac45a3e8a006db33a9c35985fb22b3466776e7

Contents?: true

Size: 175 Bytes

Versions: 14

Compression:

Stored size: 175 Bytes

Contents

module Brightcontent
  module Pages
    module Methods
      def current_page
        @current_page ||= Page.find_by_slug(request.fullpath[1..-1])
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
brightcontent-pages-2.0.9 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.8 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.7 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.6 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.5 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.3 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.2 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.1 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.0.alpha6 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.0.alpha5 lib/brightcontent/pages/methods.rb
brightcontent-2.0.0.alpha3 pages/lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.0.alpha3 lib/brightcontent/pages/methods.rb
brightcontent-2.0.0.alpha2 pages/lib/brightcontent/pages/methods.rb
brightcontent-pages-0.0.1 lib/brightcontent/pages/methods.rb