A gem I am using inserts an after_save callback that I would like to remove. It seems to me it would be cleaner to delete a symbol from an array than to fix the problem with a monkeypatch. How can I access the array of callbacks?
相关问题
- Question marks after images and js/css files in ra
- Using :remote => true with hover event
- Disable Browser onUnload on certain links?
- Eager-loading association count with Arel (Rails 3
- Is there a way to remove IDV Tags from an AIFF fil
相关文章
- 关于Asp.net Mvc Core重写Initialize方法的问题
- Right way to deploy Rails + Puma + Postgres app to
- Spring: controller inheritance using @Controller a
- AWS S3 in rails - how to set the s3_signature_vers
- how to call a active record named scope with a str
- How to add a JSON column in MySQL with Rails 5 Mig
- How to create a CFuncType in Python
- “No explicit conversion of Symbol into String” for
the
after_save
array is accessible viaModel.after_save
, it is an array ofActiveSupport::Callbacks::Callback
objects. You could run this from within the model