mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-18 01:22:03 +00:00
use "do end" instead of {} at app/models/wiki_page.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20274 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6a04a9a443
commit
475daf62f1
@ -328,10 +328,10 @@ class WikiAnnotate
|
||||
break unless @lines.detect { |line| line[0].nil? }
|
||||
current = current.previous
|
||||
end
|
||||
@lines.each { |line|
|
||||
@lines.each do |line|
|
||||
line[0] ||= current.version
|
||||
# if the last known version is > 1 (eg. history was cleared), we don't know the author
|
||||
line[1] ||= current.author if current.version == 1
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user