You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have found that @activity.trackable does not work when there is a default_scope which excludes the tracked object. I found a working monkey patch (see below), though is there a more appropriate solution? Would it be possible to override this default_scope when it's present?
To also make it work if you need including ParentModel.includes(activities: :owner), you can override the association in an initializer (for activerecord apps; and e.g., inorder to unscope deleted_at):
I have found that
@activity.trackable
does not work when there is adefault_scope
which excludes the tracked object. I found a working monkey patch (see below), though is there a more appropriate solution? Would it be possible to override this default_scope when it's present?The text was updated successfully, but these errors were encountered: