From d0cd1083b33fd8c1d63f05da14a9f2fddfbbb54b Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 18 Nov 2020 16:16:22 +0000 Subject: [PATCH] remove spaces inside {} of app/models/news.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20424 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/news.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/news.rb b/app/models/news.rb index 7c4e4b280..575dabd73 100644 --- a/app/models/news.rb +++ b/app/models/news.rb @@ -32,7 +32,7 @@ class News < ActiveRecord::Base acts_as_searchable :columns => ['title', 'summary', "#{table_name}.description"], :preload => :project acts_as_event :url => Proc.new {|o| {:controller => 'news', :action => 'show', :id => o.id}} - acts_as_activity_provider :scope => proc { preload(:project, :author) }, + acts_as_activity_provider :scope => proc {preload(:project, :author)}, :author_key => :author_id acts_as_watchable