Selaa lähdekoodia

food unsub - 7

abiao 2 vuotta sitten
vanhempi
commit
2e1f146f73
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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 = RefundFood.where("id = ? and status = ? ",@object.id,false).first
+                    rd = FoodUnsub.where("id = ? and status = ? ",@object.id,false).first
                     n = "退餐成功"
                     if !rd.blank?
                         n = "已退餐成功"