Sha256: 19bca56ec7b842e434205fa63efbb0f9efac1ee0826051978255f214f520f81b
Contents?: true
Size: 462 Bytes
Versions: 2
Compression:
Stored size: 462 Bytes
Contents
module Mascot class SitemapController < ::ApplicationController rescue_from Mascot::PageNotFoundError, with: :page_not_found def show mascot.render params[:path] end protected def mascot Mascot::ActionControllerContext.new(controller: self, sitemap: sitemap) end def sitemap Mascot.configuration.sitemap end def page_not_found(e) raise ActionController::RoutingError, e.message end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mascot-rails-0.1.5 | app/controllers/mascot/sitemap_controller.rb |
mascot-rails-0.1.4 | app/controllers/mascot/sitemap_controller.rb |