lib/puffer/resource.rb in puffer-0.0.7 vs lib/puffer/resource.rb in puffer-0.0.8
- old
+ new
@@ -94,10 +94,10 @@
end
end
def collection
scope = parent ? parent.member.send(model_name.pluralize) : model
- scope.includes(includes).joins(includes).order(order).paginate :page => params[:page]
+ scope.includes(includes).joins(includes).where(searches(params[:search])).order(order).paginate :page => params[:page]
end
def member
if parent
if plural?