class NewPostNotification < NotifyUser::BaseNotification channel :action_mailer, subject: "Rails3217: You have a new Newpostnotification notification.", aggregate: { subject: "Rails3217: You have new Newpostnotification notifications." } self.description = "please override this type description" self.aggregate_per = 10.minutes def message "New Post Notification happened with #{params.as_json}" end end