remove paginate in surveys
This commit is contained in:
@@ -5,16 +5,10 @@ class Transactions::SurveysController < ApplicationController
|
||||
to = params[:to]
|
||||
|
||||
if filter.nil? && from.nil? && to.nil?
|
||||
surveys = Survey.all
|
||||
@surveys = Survey.all
|
||||
else
|
||||
surveys = Survey.search(filter,from,to)
|
||||
@surveys = Survey.search(filter,from,to)
|
||||
end
|
||||
|
||||
if !surveys.nil?
|
||||
@surveys = Kaminari.paginate_array(surveys).page(params[:page]).per(20)
|
||||
else
|
||||
@surveys = []
|
||||
end
|
||||
|
||||
@filter = filter
|
||||
@from = from
|
||||
|
||||
Reference in New Issue
Block a user