Skip to content

Commit

Permalink
Merge pull request #12 from cbus-sea-lions-2015/libraries-show
Browse files Browse the repository at this point in the history
Libraries show
  • Loading branch information
felix-starman committed Apr 19, 2015
2 parents 77083a8 + 50063e6 commit 8d12682
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/libraries_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ def index

def show
all_games = Library.find_by(bgg_username: params[:id]).games
# UsersFetcher.perform_async(params[:id])
puts all_games.to_json
render json: all_games.to_json
end

def create
bgg_user = params(:bgg_username)
bgg_user = params[:bgg_username]
response = BggApi.new.collection({ username: bgg_user })
if response.keys[0] != "error"
UsersFetcher.perform_async(bgg_user)
Expand Down

0 comments on commit 8d12682

Please sign in to comment.