Sha256: d5106905c35524e8b8922df09a5386057e8ae16fcea51b85f6052c4cd0f70cb7

Contents?: true

Size: 231 Bytes

Versions: 1

Compression:

Stored size: 231 Bytes

Contents

class << ActiveRecord::Base

  def receives_notifications

      has_many :notifications, -> { preloaded },
               :class_name => NotifyOn::Notification, :as => :recipient,
               :dependent => :destroy

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
notify_on-1.0.1 lib/notify_on/receives_notifications.rb