mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-11 13:15:20 +00:00
remove spaces inside {} of app/models/wiki_page.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20367 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
ef4fedfa4f
commit
f401ab1161
@ -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|
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user