module Voltron::Notify

Constants

LOG_COLOR
VERSION

Public Instance Methods

notifyable(defaults={}) click to toggle source
# File lib/voltron/notify.rb, line 11
def notifyable(defaults={})
  @_notification_defaults = defaults.with_indifferent_access

  has_many :notifications, as: :notifyable, inverse_of: :notifyable, validate: true, autosave: true, class_name: '::Voltron::Notification'
end