From cadcd7a340bf06cef8a230083cd4afd830d5ccd7 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 19 Dec 2020 17:33:11 +0000 Subject: [PATCH] use '\' instead of '+' to concatenate strings at app/models/wiki_content_version.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20679 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/wiki_content_version.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/models/wiki_content_version.rb b/app/models/wiki_content_version.rb index 1731bccf7..232cad7b3 100644 --- a/app/models/wiki_content_version.rb +++ b/app/models/wiki_content_version.rb @@ -46,12 +46,12 @@ class WikiContentVersion < ActiveRecord::Base :permission => :view_wiki_edits, :scope => proc do - select("#{table_name}.updated_on, #{table_name}.comments, " + - "#{table_name}.version, #{WikiPage.table_name}.title, " + - "#{table_name}.page_id, #{table_name}.author_id, " + + select("#{table_name}.updated_on, #{table_name}.comments, " \ + "#{table_name}.version, #{WikiPage.table_name}.title, " \ + "#{table_name}.page_id, #{table_name}.author_id, " \ "#{table_name}.id"). - joins("LEFT JOIN #{WikiPage.table_name} ON #{WikiPage.table_name}.id = #{table_name}.page_id " + - "LEFT JOIN #{Wiki.table_name} ON #{Wiki.table_name}.id = #{WikiPage.table_name}.wiki_id " + + joins("LEFT JOIN #{WikiPage.table_name} ON #{WikiPage.table_name}.id = #{table_name}.page_id " \ + "LEFT JOIN #{Wiki.table_name} ON #{Wiki.table_name}.id = #{WikiPage.table_name}.wiki_id " \ "LEFT JOIN #{Project.table_name} ON #{Project.table_name}.id = #{Wiki.table_name}.project_id") end ) -- 2.39.5