summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/watchers.rake9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/tasks/watchers.rake b/lib/tasks/watchers.rake
new file mode 100644
index 000000000..caa9e05f6
--- /dev/null
+++ b/lib/tasks/watchers.rake
@@ -0,0 +1,9 @@
+desc 'Removes watchers from what they can no longer view.'
+
+namespace :redmine do
+ namespace :watchers do
+ task :prune => :environment do
+ Watcher.prune
+ end
+ end
+end