customink / secondbase

Seamless second database integration for Rails.
MIT License
220 stars 31 forks source link

After Create in Second Base Model #65

Closed JonnyGalassi closed 2 months ago

JonnyGalassi commented 5 years ago

Hello, I want to alert when add new record in Second Base model, with callback method after_create, but nothing to do. What happend?

metaskills commented 5 years ago

Hey @JonnyGalassi thanks for the question. Did you figure this out and/or have you tried to create a simple test case? Off hand I can not think of any reason callbacks would not work, we use Secondbase a lot (with callbacks) and have not seen this. So sharing some code of yours would go a long way in helping.