Skip to content

Commit

Permalink
Don't allow new question creations
Browse files Browse the repository at this point in the history
  • Loading branch information
jboonstra committed Apr 15, 2024
1 parent 10f876e commit 3b586bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/questions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,7 @@ def toggle_autoactivate
# GET /questions/new
# GET /questions/new.xml
def new
redirect_to "https://all-our-ideas.citizens.is/" and return
@errors ||= []
@question = Question.new

Expand Down
2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
map.resource :passwords, :controller => "clearance/passwords"

map.resources :questions,
# no longer allowing new question creations
:except => [:create],
:collection => {
},
:member => {
Expand Down

0 comments on commit 3b586bd

Please sign in to comment.