fix questions admin

This commit is contained in:
2022-10-18 22:05:24 -03:00
parent dcebbaef74
commit b9d682f86b
2 changed files with 6 additions and 3 deletions

View File

@@ -194,6 +194,8 @@ GEM
net-protocol
timeout
nio4r (2.5.8)
nokogiri (1.13.7-aarch64-linux)
racc (~> 1.4)
nokogiri (1.13.7-arm64-darwin)
racc (~> 1.4)
nokogiri (1.13.7-x86_64-linux)
@@ -337,6 +339,7 @@ GEM
zeitwerk (2.6.0)
PLATFORMS
aarch64-linux
arm64-darwin-21
x86_64-linux
@@ -377,4 +380,4 @@ RUBY VERSION
ruby 3.1.2p20
BUNDLED WITH
2.3.16
2.3.7

View File

@@ -18,11 +18,11 @@ ActiveAdmin.register Question do
controller do
def show
@question = Question.unscoped.find_by!(permitted_params[:id])
@question = Question.unscoped.find(permitted_params[:id])
end
def edit
@question = Question.unscoped.find_by!(permitted_params[:id])
@question = Question.unscoped.find(permitted_params[:id])
end
def destroy