I know there's the after_add and after_remove association callbacks you can use when defining the association in rails as described under the Assocation Callbacks section here - http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html
But the gem i'm using already defined the association like so:
has_many :payments, as: :source
I tried going with class_eval or ActiveSupport::Concern to override the association so it would look like this:
has_many :payments, as: :source, after_add: :payment_added, after_remove: :payment_removed
But it isn't working for me (if you think it should let me know)
So rather than trying to override it i'm wondering if there's any other way to observe something similar to after_remove and after_add, basically when a payment has been added or removed.