diff --git a/config/routes.rb b/config/routes.rb index 0e12c8e..93aeba2 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -12,9 +12,7 @@ if ENV['worker_num']=='0' && File.basename($0) != 'rake' && !Rails.const_defined ad_image.generate_video_snapshot end if update_flag - s = OrbitHelper::SharedHash['current_site']['site'] rescue Site.first - s.tmp_flags << 'adf1' - s.save + Site.update_all("$push"=>{"tmp_flags"=>'adf1'}) end end end