summaryrefslogtreecommitdiffstats
path: root/app/models/wiki_page.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-14 13:18:02 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-14 13:18:02 +0000
commitf401ab1161fd7cc912b222e80d1e82535ab74918 (patch)
tree9469cb55a1a677cc6777007550da4f96f61275e0 /app/models/wiki_page.rb
parentef4fedfa4ff043fe74b464897665480d8f1aed54 (diff)
downloadredmine-f401ab1161fd7cc912b222e80d1e82535ab74918.tar.gz
redmine-f401ab1161fd7cc912b222e80d1e82535ab74918.zip
remove spaces inside {} of app/models/wiki_page.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20367 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/wiki_page.rb')
-rw-r--r--app/models/wiki_page.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb
index 02b7044da..7011bdf97 100644
--- a/app/models/wiki_page.rb
+++ b/app/models/wiki_page.rb
@@ -56,7 +56,7 @@ class WikiPage < ActiveRecord::Base
after_save :handle_children_move, :delete_selected_attachments
# eager load information about last updates, without loading text
- scope :with_updated_on, lambda { preload(:content_without_text) }
+ scope :with_updated_on, lambda {preload(:content_without_text)}
# Wiki pages that are protected by default
DEFAULT_PROTECTED_PAGES = %w(sidebar)
@@ -325,7 +325,8 @@ class WikiAnnotate
end
positions.compact!
# Stop if every line is annotated
- break unless @lines.detect { |line| line[0].nil? }
+ break unless @lines.detect {|line| line[0].nil?}
+
current = current.previous
end
@lines.each do |line|