Class: Cms::SitemapsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/cms/sitemaps_controller.rb

Instance Method Summary collapse

Instance Method Details

#editObject



8
9
10
# File 'app/controllers/cms/sitemaps_controller.rb', line 8

def edit
  @depth = Cms::SitemapGenerator.depth
end

#updateObject



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