Hook attach/detach
# avo-2
c
Is there a way to chain onto attach/detach? Maybe a callback or a controller action I can define?
l
Hi @calm-gold-48525 there is not a straigth away way of doing that with Avo. You could somehow hook into our associations controller but that can be kinda tricky because is 1 controller used for all associations. It depends on what you want to do but usually https://guides.rubyonrails.org/association_basics.html#association-callbacks asoociation callbacks provided by RoR do the trick
l
@loud-jewelry-99127 let’s create an issue so we can track it easier
l
To add an hook into attachments?
l
Yes. After and before attach/detach
l
Yeah that would be awesome
l
Thanks!
c
Cool. Would be a neat feature but happily, actions provide a way to accomplish the same.