Skip to content

Commit 1630022

Browse files
committed
truthy enough if we just verify the param was passed in
1 parent 82c1510 commit 1630022

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/controllers/api/v1/resources_controller.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@ class ResourcesController < ApplicationController
55

66
# return all resources
77
def index
8-
if params[:tagged] == true
8+
Rails.logger.info "params.inspect"
9+
if params[:tagged]
910
@resources = Resource.tagged?
1011
else
1112
@resources = Resource.all
1213
end
1314
respond_to do |format|
1415
format.html # index.html.erb
1516
format.json { render json: @resources }
16-
end
17+
end
1718
end
1819

1920
def show

0 commit comments

Comments
 (0)