Patch #18818 » activity_scope_on_time_entry.patch
app/models/time_entry.rb | ||
---|---|---|
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 |