Sha256: b2eb772f1921b62ed835dec40739370def11d5d899c669fbfae93a24c88b31d3

Contents?: true

Size: 881 Bytes

Versions: 1

Compression:

Stored size: 881 Bytes

Contents

module LesliBell
    class Notification < ApplicationRecord
        belongs_to :account, class_name: "LesliBell::Account"
        belongs_to :user, class_name: "::Lesli::User"


        enum category: {
            info: "info",
            danger: "danger",
            warning: "warning",
            success: "success"
        }

        enum channel: {
            push: "push",                   # webpush & mobilepush
            email: "email",                 # notification sent by email only
            webpush: "webpush",             # notification for web interface only
            mobilepush: "mobilepush",       # notification for mobile only
            mobiledialog: "mobiledialog",   # open a dialog in the main app screen
        }

        enum status: {
            read: "read",
            sent: "sent",
            created: "created"
        }
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lesli_bell-0.1.0 app/models/lesli_bell/notification.rb