소스 검색

food unsub - 11

abiao 2 년 전
부모
커밋
b2792a80e7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 = "已退餐成功"