Rails4: replace deprecated find_all_by_* at TimelogController#find_time_entries

git-svn-id: http://svn.redmine.org/redmine/trunk@12603 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-10 10:40:46 +00:00
parent c57490f48e
commit b02429e864
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ private
end
def find_time_entries
@time_entries = TimeEntry.find_all_by_id(params[:id] || params[:ids])
@time_entries = TimeEntry.where(:id => params[:id] || params[:ids]).all
raise ActiveRecord::RecordNotFound if @time_entries.empty?
@projects = @time_entries.collect(&:project).compact.uniq
@project = @projects.first if @projects.size == 1