Module: Voltron::Notify
- Defined in:
- lib/voltron/notify.rb,
lib/voltron/notify/engine.rb,
lib/voltron/notify/version.rb,
lib/voltron/notify/action_dispatch/routes.rb,
lib/generators/voltron/notify/install_generator.rb
Defined Under Namespace
Modules: Generators, Routes Classes: Engine
Constant Summary collapse
- LOG_COLOR =
:light_yellow
- VERSION =
'0.2.2'.freeze
Instance Method Summary collapse
Instance Method Details
#notifyable(defaults = {}) ⇒ Object
11 12 13 14 15 |
# 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 |