fix questions admin
This commit is contained in:
@@ -194,6 +194,8 @@ GEM
|
|||||||
net-protocol
|
net-protocol
|
||||||
timeout
|
timeout
|
||||||
nio4r (2.5.8)
|
nio4r (2.5.8)
|
||||||
|
nokogiri (1.13.7-aarch64-linux)
|
||||||
|
racc (~> 1.4)
|
||||||
nokogiri (1.13.7-arm64-darwin)
|
nokogiri (1.13.7-arm64-darwin)
|
||||||
racc (~> 1.4)
|
racc (~> 1.4)
|
||||||
nokogiri (1.13.7-x86_64-linux)
|
nokogiri (1.13.7-x86_64-linux)
|
||||||
@@ -337,6 +339,7 @@ GEM
|
|||||||
zeitwerk (2.6.0)
|
zeitwerk (2.6.0)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
|
aarch64-linux
|
||||||
arm64-darwin-21
|
arm64-darwin-21
|
||||||
x86_64-linux
|
x86_64-linux
|
||||||
|
|
||||||
@@ -377,4 +380,4 @@ RUBY VERSION
|
|||||||
ruby 3.1.2p20
|
ruby 3.1.2p20
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
2.3.16
|
2.3.7
|
||||||
|
|||||||
@@ -18,11 +18,11 @@ ActiveAdmin.register Question do
|
|||||||
|
|
||||||
controller do
|
controller do
|
||||||
def show
|
def show
|
||||||
@question = Question.unscoped.find_by!(permitted_params[:id])
|
@question = Question.unscoped.find(permitted_params[:id])
|
||||||
end
|
end
|
||||||
|
|
||||||
def edit
|
def edit
|
||||||
@question = Question.unscoped.find_by!(permitted_params[:id])
|
@question = Question.unscoped.find(permitted_params[:id])
|
||||||
end
|
end
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
|
|||||||
Reference in New Issue
Block a user