mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
add empty line after guard clause to app/models/watcher.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20239 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
bd67226014
commit
319e5f3c08
@ -60,9 +60,11 @@ class Watcher < ActiveRecord::Base
|
||||
|
||||
def self.prune_single_user(user, options={})
|
||||
return unless user.is_a?(User)
|
||||
|
||||
pruned = 0
|
||||
where(:user_id => user.id).each do |watcher|
|
||||
next if watcher.watchable.nil?
|
||||
|
||||
if options.has_key?(:project)
|
||||
unless watcher.watchable.respond_to?(:project) &&
|
||||
watcher.watchable.project == options[:project]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user