Module: WechatPayment::Concern::UserGoods
- Defined in:
- lib/wechat_payment/concern/user_goods.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/wechat_payment/concern/user_goods.rb', line 5 def self.included(base) base.class_eval do has_many :payment_orders, as: :goods, class_name: "WechatPayment::PaymentOrder" has_many :refund_orders, as: :goods, class_name: "WechatPayment::PaymentOrder" end end |