diff options
author | David Gay <david@davidgay.org> | 2023-11-03 02:11:02 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2023-11-03 02:11:02 -0400 |
commit | d4c92922e393876e93ad13943ba45fb08586e6c8 (patch) | |
tree | 5460ab24695c978080133ae9af9dcbf8b4bca55c /app/controllers | |
parent | 13f4f6ca06a216962f4c25fa0d6041945cfb3fb5 (diff) |
Pokedex: Grey out uncaptured pokemon
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/pokedex_controller.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/pokedex_controller.rb b/app/controllers/pokedex_controller.rb index 062373e..21ee44a 100644 --- a/app/controllers/pokedex_controller.rb +++ b/app/controllers/pokedex_controller.rb @@ -1,3 +1,11 @@ class PokedexController < ApplicationController + before_action :set_user + def index; end + +protected + + def set_user + @user = User.find(params[:user_id]) + end end |