##// END OF EJS Templates
Rails4: replace deprecated find_all_by_* at TimelogController#find_time_entries...
Toshi MARUYAMA -
r12328:b02429e86423
parent child
Show More
@@ -232,7 +232,7 private
232 end
232 end
233
233
234 def find_time_entries
234 def find_time_entries
235 @time_entries = TimeEntry.find_all_by_id(params[:id] || params[:ids])
235 @time_entries = TimeEntry.where(:id => params[:id] || params[:ids]).all
236 raise ActiveRecord::RecordNotFound if @time_entries.empty?
236 raise ActiveRecord::RecordNotFound if @time_entries.empty?
237 @projects = @time_entries.collect(&:project).compact.uniq
237 @projects = @time_entries.collect(&:project).compact.uniq
238 @project = @projects.first if @projects.size == 1
238 @project = @projects.first if @projects.size == 1
General Comments 0
You need to be logged in to leave comments. Login now