Class: UserNotification::ORM::ActiveRecord::Adapter

Inherits:
Object
  • Object
show all
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

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, options)
  notifiable.notifications.create options
end