Customising Notification Events in Rails
December 13, 2022 · 428 words · 3 min · notifications circuitverse
🎯 GOAL: Customise notification events With reference to issue #3395 & PR #3396 in Circuitverse There were two methods to make this work - To make a preferences table with users as foreign key and notification events as attributes. To user rails ActiveRecord::Store and add a preferences hash/jsonb to users to table. I found the second approach better and implemented the same. It was most used by rails developers to implement such features.