app/controllers/attractor/rails/reporter_controller.rb in attractor-rails-0.1.0 vs app/controllers/attractor/rails/reporter_controller.rb in attractor-rails-0.1.1

- old
+ new

@@ -21,10 +21,11 @@ render json: @reporter.values(type: type).map(&:to_h) end def suggestions threshold = params[:t] || 95 - render json: @reporter.suggestions(threshold).map(&:to_h) + type = params[:type] || "rb" + render json: @reporter.suggestions(quantile: threshold, type: type).map(&:to_h) end private def load_reporter