Hmm interesting! I'm thinking of ActiveSupport::Notifications for a notification system, but I wonder if it would eat up a lot of memory. I've been back and forth between whether or not it makes more sense to use something like ActiveSupport or have a database table specifically for the notifications.
Is there a way to render the payload data in a view? I'm guessing you could do something like:
classNotificationsControllerdefindex@notifications=ActiveSupport::Notifications::Event.all# or whatever the syntax isendend
Also I wonder if there's a way to expire events. Thanks for sharing this! Now my mind is brewing...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hmm interesting! I'm thinking of ActiveSupport::Notifications for a notification system, but I wonder if it would eat up a lot of memory. I've been back and forth between whether or not it makes more sense to use something like ActiveSupport or have a database table specifically for the notifications.
Is there a way to render the
payload
data in a view? I'm guessing you could do something like:Also I wonder if there's a way to expire events. Thanks for sharing this! Now my mind is brewing...