```ruby
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
user
```ruby
module Brightcontent
  module Pages
    module Methods
      def current_page
        @current_page ||= Page.find_by_slug!(request.fullpath[1..-1])
      end
    end
  end
end
```
assistant