Class: UserNotification::ORM::ActiveRecord::Adapter
- Inherits:
-
Object
- Object
- UserNotification::ORM::ActiveRecord::Adapter
- Defined in:
- lib/user_notification/orm/active_record/adapter.rb
Overview
Provides ActiveRecord specific, database-related routines for use by UserNotification.
Class Method Summary collapse
-
.create_notification(notifiable, options) ⇒ Object
Creates the notification on ‘notifiable` with `options`.
Class Method Details
.create_notification(notifiable, options) ⇒ Object
Creates the notification on ‘notifiable` with `options`
10 11 12 |
# File 'lib/user_notification/orm/active_record/adapter.rb', line 10 def self.create_notification(notifiable, ) notifiable.notifications.create end |