##// END OF EJS Templates
TimeEntry acts_as_activity_provider scope should joins(:project) (#18818)....
Jean-Philippe Lang -
r13589:4bbd3d81fd5f
parent child
Show More
@@ -35,7 +35,7 class TimeEntry < ActiveRecord::Base
35 35
36 36 acts_as_activity_provider :timestamp => "#{table_name}.created_on",
37 37 :author_key => :user_id,
38 :scope => preload(:project)
38 :scope => joins(:project).preload(:project)
39 39
40 40 validates_presence_of :user_id, :activity_id, :project_id, :hours, :spent_on
41 41 validates_numericality_of :hours, :allow_nil => true, :message => :invalid
General Comments 0
You need to be logged in to leave comments. Login now