Class: Cms::SitemapsController
- Inherits:
-
BaseController
- Object
- BaseController
- Cms::SitemapsController
- Defined in:
- app/controllers/cms/sitemaps_controller.rb
Instance Method Summary collapse
Instance Method Details
#edit ⇒ Object
8 9 10 |
# File 'app/controllers/cms/sitemaps_controller.rb', line 8 def edit @depth = Cms::SitemapGenerator.depth end |
#update ⇒ Object
12 13 14 15 16 |
# File 'app/controllers/cms/sitemaps_controller.rb', line 12 def update Cms::SitemapGenerator.depth = params[:depth] flash[:notice] = "Sitemap depth updated" redirect_to :action => :edit end |