Sha256: f6b395865f49f7713e0d4ce02c527622476f259219e7c628ed26ad5e212adebd
Contents?: true
Size: 506 Bytes
Versions: 2
Compression:
Stored size: 506 Bytes
Contents
require 'voltron' require 'voltron/notify/version' require 'voltron/notify/action_dispatch/routes' require 'voltron/config/notify' module Voltron module Notify LOG_COLOR = :light_yellow 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 end end require 'voltron/notify/engine' if defined?(Rails)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
voltron-notify-0.2.2 | lib/voltron/notify.rb |
voltron-notify-0.2.1 | lib/voltron/notify.rb |