Explorar o código

food unsub - 11

abiao %!s(int64=2) %!d(string=hai) anos
pai
achega
b2792a80e7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 = "已退餐成功"