app/controllers/knitkit/base_controller.rb in knitkit-3.0.0 vs app/controllers/knitkit/base_controller.rb in knitkit-3.2.0

- old
+ new

@@ -1,8 +1,8 @@ module Knitkit class BaseController < ::ErpApp::ApplicationController - before_filter :set_website, :clear_widget_params + before_filter :set_website before_filter :set_login_path, :set_active_publication, :load_sections, :set_section, :except => [:view_current_publication] acts_as_themed_controller layout 'knitkit/base' @@ -20,13 +20,9 @@ @website = Website.find_by_host(request.host_with_port) end def load_sections @website_sections = @website.website_sections.positioned - end - - def clear_widget_params - session[:widgets] = {} end def set_section unless params[:section_id].nil? @website_section = WebsiteSection.find(params[:section_id])