recipe dismissed cooksnap followed user liked recipe published cooksnap published recipe recipe visited unapproved recipe unbookmarked recipe unfollowed user unliked recipe unpublished recipe @lewispb
def event_time recipe.published_at end end # app/events/application_event.rb class RecipeEvent < ApplicationEvent topic_name :recipes def initialize(recipe) @recipe = recipe end private ... end