]> git.openstreetmap.org Git - rails.git/commitdiff
Set needs_view by default for new blocks
authorAnton Khorev <tony29@yandex.ru>
Tue, 21 Jan 2025 23:26:07 +0000 (02:26 +0300)
committerAnton Khorev <tony29@yandex.ru>
Tue, 21 Jan 2025 23:26:07 +0000 (02:26 +0300)
app/controllers/user_blocks_controller.rb

index a526f529e9e1fb2da92e982708106898e56b9e46..ec85aef38407be690f68781f02626bf2643a1626 100644 (file)
@@ -37,7 +37,7 @@ class UserBlocksController < ApplicationController
   end
 
   def new
-    @user_block = UserBlock.new
+    @user_block = UserBlock.new(:needs_view => true)
   end
 
   def edit