Actions
Patch #18818
closedTimeEntry acts_as_activity_provider scope should joins(:project)
Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:
0%
Estimated time:
Description
TimeEntry acts_as_activity_provider scope should join project, not just preload it
Files
Updated by Jean-Philippe Lang almost 10 years ago
- Subject changed from TimeEntry acts_as_activity_provider scope to TimeEntry acts_as_activity_provider scope should joins(:project)
- Category set to Code cleanup/refactoring
- Status changed from New to Closed
- Assignee set to Jean-Philippe Lang
Committed in r13971, thanks.
Updated by Toshi MARUYAMA almost 10 years ago
For the record:
:scope => preload(:project) was introduced by r13482 (#14534).
=== (+11,-5) app/models/time_entry.rb ===
@@ -35,7 +35,7 @@
acts_as_activity_provider :timestamp => "#{table_name}.created_on",
:author_key => :user_id,
- :find_options => {:include => :project}
+ :scope => preload(:project)
Actions