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

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

Raise if page not found
Raise if page not found
