@@ -278,7 +278,7 class ProjectsController < ApplicationController | |||||
278 | if @scope.include?('messages') |
|
278 | if @scope.include?('messages') | |
279 | @events += Message.find(:all, |
|
279 | @events += Message.find(:all, | |
280 | :include => [:board, :author], |
|
280 | :include => [:board, :author], | |
281 |
:conditions => ["#{Board.table_name}.project_id=? AND |
|
281 | :conditions => ["#{Board.table_name}.project_id=? AND #{Message.table_name}.created_on BETWEEN ? AND ?", @project.id, @date_from, @date_to]) | |
282 | end |
|
282 | end | |
283 |
|
283 | |||
284 | @events_by_day = @events.group_by(&:event_date) |
|
284 | @events_by_day = @events.group_by(&:event_date) |
General Comments 0
You need to be logged in to leave comments.
Login now