]> source.dussan.org Git - redmine.git/commitdiff
Fix that Example plugin (extra/sample_plugin) breaks Activity page (#38114).
authorGo MAEDA <maeda@farend.jp>
Fri, 27 Jan 2023 04:04:20 +0000 (04:04 +0000)
committerGo MAEDA <maeda@farend.jp>
Fri, 27 Jan 2023 04:04:20 +0000 (04:04 +0000)
Patch by Karel Pičman.

git-svn-id: https://svn.redmine.org/redmine/trunk@22079 e93f8b46-1217-0410-a6f0-8f06a7374b81

extra/sample_plugin/app/models/meeting.rb

index 251892ece687879b995853f75dd26638d2e641ae..78d801304d6aa82931a764126c1ff78fc39b6326 100644 (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 => proc { includes(:project) },
+                            :scope => proc { joins(:project) },
                             :permission => nil
 end