Class: Unsubscribe
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Unsubscribe
- Defined in:
- app/models/unsubscribe.rb
Instance Attribute Summary collapse
-
#subscribed ⇒ Object
Returns the value of attribute subscribed.
Class Method Summary collapse
Instance Attribute Details
#subscribed ⇒ Object
Returns the value of attribute subscribed.
4 5 6 |
# File 'app/models/unsubscribe.rb', line 4 def subscribed @subscribed end |
Class Method Details
.updates_unsubscribe(project_id) ⇒ Object
6 7 8 9 |
# File 'app/models/unsubscribe.rb', line 6 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 |