]> source.dussan.org Git - redmine.git/commitdiff
use '\' instead of '+' to concatenate strings at app/models/wiki_content_version.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 19 Dec 2020 17:33:11 +0000 (17:33 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 19 Dec 2020 17:33:11 +0000 (17:33 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20679 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/wiki_content_version.rb

index 1731bccf7ff7d1123e6f8424cb7400117d31aa9e..232cad7b3db97a09c6fb91b75df8c6d26bae6ca0 100644 (file)
@@ -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
   )