@@ -35,7 +35,7 class TimeEntry < ActiveRecord::Base | |||||
35 |
|
35 | |||
36 | acts_as_activity_provider :timestamp => "#{table_name}.created_on", |
|
36 | acts_as_activity_provider :timestamp => "#{table_name}.created_on", | |
37 | :author_key => :user_id, |
|
37 | :author_key => :user_id, | |
38 | :scope => preload(:project) |
|
38 | :scope => joins(:project).preload(:project) | |
39 |
|
39 | |||
40 | validates_presence_of :user_id, :activity_id, :project_id, :hours, :spent_on |
|
40 | validates_presence_of :user_id, :activity_id, :project_id, :hours, :spent_on | |
41 | validates_numericality_of :hours, :allow_nil => true, :message => :invalid |
|
41 | validates_numericality_of :hours, :allow_nil => true, :message => :invalid |
General Comments 0
You need to be logged in to leave comments.
Login now