瀏覽代碼

Typo

master
aeris 1 年之前
父節點
當前提交
18fed00b19
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      app/controllers/check_controller.rb

+ 2
- 2
app/controllers/check_controller.rb 查看文件

@@ -15,9 +15,9 @@ class CheckController < ApplicationController
end

def refresh
unless @result.pending
unless @analysis.pending
if Rails.env == 'production'
refresh_allowed = @result.updated_at + Rails.configuration.refresh_delay
refresh_allowed = @analysis.updated_at + Rails.configuration.refresh_delay
if Time.now < refresh_allowed
flash[:warning] = "Merci d’attendre au moins #{l refresh_allowed} pour rafraîchir"
return redirect_to action: :show, id: @host


Loading…
取消
儲存