Skip to content

Commit

Permalink
remove byebug
Browse files Browse the repository at this point in the history
  • Loading branch information
aljesusg committed Feb 15, 2018
1 parent 4eda61b commit b224228
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/controllers/v1/spins_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class SpinsController < ApiController
# spins?query=<value> Look spins include value in the name
def index
@spins = Spin.where(visible:true)
byebug
@spins = @spins.where("'name' ILIKE ?", "%#{params[:name]}%") if params[:name]
@spins = @spins.joins(:user).where("users.github_login ILIKE ?", "%#{params[:author]}%") if params[:author]
@spins = @spins.order("#{params[:sort]} #{params[:order] || 'DESC'}") if params[:sort]
Expand Down

0 comments on commit b224228

Please sign in to comment.