1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

remove spaces inside {} of app/models/news.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@20424 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2020-11-18 16:16:22 +00:00
parent 046c0c4729
commit d0cd1083b3

View File

@ -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