From a73ed8baff62726ee2bd7062c337a199b2d5c36e Mon Sep 17 00:00:00 2001 From: BoHung Chiu Date: Mon, 16 Jan 2023 17:36:45 +0800 Subject: [PATCH] Fix bug. --- config/routes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 2112d6d..e8581ab 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -8,7 +8,7 @@ Rails.application.routes.draw do s = Site.first update_flag = s.respond_to?(:tmp_flags) need_update1 = update_flag && !(s.tmp_flags.include?('fix_sr')) - need_update2 = !update_flag || !(s.tmp_flags.include?('sm1')) + need_update2 = !update_flag || !(s.tmp_flags.include?('smer1')) if need_update1 Page.where(:bind_model=>"SeminarMain",:all_pageids=>nil).each do |p| p.save @@ -23,7 +23,7 @@ Rails.application.routes.draw do end if update_flag s = Site.first - s.tmp_flags << 'sm1' + s.tmp_flags << 'smer1' s.save end end -- 2.40.1