Kaynağa Gözat

food unsub - 11

abiao 2 yıl önce
ebeveyn
işleme
b2792a80e7
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      lib/rails_admin/refund_food.rb

+ 1 - 1
lib/rails_admin/refund_food.rb

@@ -26,7 +26,7 @@ module RailsAdmin
             register_instance_option :controller do
                 Proc.new do
                     require 'rest-client'
-                    rd = FoodUnsub.where("id = ? and status = ? ",@object.id,1).first
+                    rd = EmployStaticFood.where("id = ? and status = ? ",@object.id,1).first
                     n = "退餐成功"
                     if !rd.blank?
                         n = "已退餐成功"