Class: BcmsSeoSitemap::SitemapsController

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

Instance Method Summary collapse

Instance Method Details

#editObject



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

def edit
  @depth = BcmsSeoSitemap::Generator.depth
end

#updateObject



12
13
14
15
16
# File 'app/controllers/bcms_seo_sitemap/sitemaps_controller.rb', line 12

def update
  BcmsSeoSitemap::Generator.depth = params[:depth]
  flash[:notice] = "Sitemap depth updated"
  redirect_to :action => :edit
end