Sha256: f7e8cd65f5c40b3f033f741640ba2c09d7305e2ceb32df4baeb7f8748a40a759
Contents?: true
Size: 410 Bytes
Versions: 1
Compression:
Stored size: 410 Bytes
Contents
module Catarse class Unsubscribe < ActiveRecord::Base belongs_to :user belongs_to :notification_type belongs_to :project attr_accessor :subscribed def self.updates_unsubscribe project_id @notification_type ||= NotificationType.where(name: 'updates').first self.find_or_initialize_by_project_id_and_notification_type_id(project_id, @notification_type.id) if @notification_type end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
catarse_core-1.0.0.beta | app/models/catarse/unsubscribe.rb |