Evaluate acts_as_activity_provider's scope lazily (#33664).

Patch by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@20148 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2020-10-17 02:02:50 +00:00
parent d9c6249a9c
commit e48ff48820
11 changed files with 27 additions and 12 deletions

View File

@@ -7,6 +7,6 @@ class Meeting < ActiveRecord::Base
:url => Proc.new {|o| {:controller => 'meetings', :action => 'show', :id => o.id}}
acts_as_activity_provider :timestamp => 'scheduled_on',
:scope => includes(:project),
:scope => proc { includes(:project) },
:permission => nil
end