summaryrefslogtreecommitdiff
path: root/app/controllers/pokedex_controller.rb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2023-11-03 02:11:02 -0400
committerDavid Gay <david@davidgay.org>2023-11-03 02:11:02 -0400
commitd4c92922e393876e93ad13943ba45fb08586e6c8 (patch)
tree5460ab24695c978080133ae9af9dcbf8b4bca55c /app/controllers/pokedex_controller.rb
parent13f4f6ca06a216962f4c25fa0d6041945cfb3fb5 (diff)
Pokedex: Grey out uncaptured pokemon
Diffstat (limited to 'app/controllers/pokedex_controller.rb')
-rw-r--r--app/controllers/pokedex_controller.rb8
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