Rails 4: Skip callback

前端 未结 4 1539
清酒与你
清酒与你 2021-01-17 21:16

I have an auction and a bid object in my application, when someone presses the BID BUTTON it then calls the BID CREATE controller which cre

4条回答
  •  鱼传尺愫
    2021-01-17 21:37

    You can try skipping callback with skip_callback

    http://www.rubydoc.info/docs/rails/4.0.0/ActiveSupport/Callbacks/ClassMethods:skip_callback

提交回复
热议问题