diff options
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects_controller.rb | 1 | ||||
-rw-r--r-- | app/controllers/versions_controller.rb | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 73d3ee05f..5ee848ba9 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -25,6 +25,7 @@ class ProjectsController < ApplicationController cache_sweeper :project_sweeper, :only => [ :add, :edit, :archive, :unarchive, :destroy ] cache_sweeper :issue_sweeper, :only => [ :add_issue ] + cache_sweeper :version_sweeper, :only => [ :add_version ] helper :sort include SortHelper diff --git a/app/controllers/versions_controller.rb b/app/controllers/versions_controller.rb index e1451f90a..f19dcda9c 100644 --- a/app/controllers/versions_controller.rb +++ b/app/controllers/versions_controller.rb @@ -19,6 +19,8 @@ class VersionsController < ApplicationController layout 'base' before_filter :find_project, :authorize + cache_sweeper :version_sweeper, :only => [ :edit, :destroy ] + def edit if request.post? and @version.update_attributes(params[:version]) flash[:notice] = l(:notice_successful_update) |