Sha256: 49ed44e85441cfe04f10538bd886833e7759edee3303ac13af62a266c1260861

Contents?: true

Size: 176 Bytes

Versions: 23

Compression:

Stored size: 176 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

23 entries across 23 versions & 1 rubygems

Version Path
brightcontent-pages-2.0.33 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.31 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.30 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.29 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.28 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.27 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.26 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.25 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.24 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.23 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.22 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.21 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.20 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.19 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.18 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.17 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.16 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.15 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.14 lib/brightcontent/pages/methods.rb
brightcontent-pages-2.0.13 lib/brightcontent/pages/methods.rb