Skip to content

Commit

Permalink
Remove backticks from param desc
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanTG committed Jan 10, 2025
1 parent 3f7f289 commit 2ee74f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/api/v1/user_submissions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class UserSubmissionsController < InheritedResources::Base

api :GET, '/api/v1/region/:region/user_submissions.json', 'Fetch user submissions for a single region'
param :region, String, desc: 'Name of the Region you want to see user submissions for', required: true
param :submission_type, String, desc: 'Type of submission to filter to. Multiple filters can be formatted as `;submission_type[]=remove_machine;submission_type[]=new_lmx` etc.', required: false
param :submission_type, String, desc: 'Type of submission to filter to. Multiple filters can be formatted as ;submission_type[]=remove_machine;submission_type[]=new_lmx etc.', required: false
def index
submission_type = params[:submission_type].blank? ? %w[new_lmx remove_machine new_condition new_msx confirm_location] : params[:submission_type]

Expand Down Expand Up @@ -83,7 +83,7 @@ def top_users
param :lon, String, desc: 'Longitude', required: true
param :max_distance, String, desc: 'Closest location within "max_distance" miles, max of 250', required: false
param :min_date_of_submission, String, desc: 'Earliest date to consider updates from, format YYYY-MM-DD', required: false
param :submission_type, String, desc: 'Type of submission to filter to. Multiple filters can be formatted as `;submission_type[]=remove_machine;submission_type[]=new_lmx` etc.', required: false
param :submission_type, String, desc: 'Type of submission to filter to. Multiple filters can be formatted as ;submission_type[]=remove_machine;submission_type[]=new_lmx etc.', required: false
param :region_id, String, desc: 'Limit results to a region', required: false
def list_within_range
if params[:max_distance].blank?
Expand Down

0 comments on commit 2ee74f4

Please sign in to comment.