Skip to content

Commit

Permalink
Fix issue arkhitech#60 with 'unknown column projects.status'
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaH committed Jan 20, 2016
1 parent 1746953 commit c85bf57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/timesheet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def time_entries_for_user(user, options={})

return TimeEntry.includes(self.includes).
where(self.conditions([user], extra_conditions)).
order('spent_on ASC')
order('spent_on ASC').references(self.includes)
end

def fetch_time_entries_by_project
Expand Down

0 comments on commit c85bf57

Please sign in to comment.