mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 10:16:03 +01:00
10 lines
279 B
Ruby
10 lines
279 B
Ruby
class Relationship < ActiveRecord::Base
|
|
belongs_to :source, class_name: 'User'
|
|
belongs_to :target, class_name: 'User'
|
|
validates :source_id, presence: true
|
|
validates :target_id, presence: true
|
|
|
|
def notification_type(*_args)
|
|
Notifications::StartedFollowing
|
|
end
|
|
end
|