Sha256: 2079a62a1e61cfae48194b4039d35c8bc10a22f17faf5c35f00f219a369c396f
Contents?: true
Size: 697 Bytes
Versions: 4
Compression:
Stored size: 697 Bytes
Contents
module NotificationHandler module Object def self.included base base.extend ClassMethods end module ClassMethods def notification_object has_many :belonging_notifications, as: :object, class_name: 'Notification', dependent: :destroy include NotificationHandler::Object::InstanceMethods extend NotificationSettings::Object if defined?(NotificationSettings) extend NotificationSettings::Subscribable if defined?(NotificationSettings) end end module InstanceMethods # ... end end end
Version data entries
4 entries across 4 versions & 1 rubygems