Class: Polivalente::Follow

Inherits:
ApplicationRecord show all
Includes:
Sortable
Defined in:
app/models/polivalente/follow.rb

Instance Method Summary collapse

Instance Method Details

#followee_nameObject



18
19
20
# File 'app/models/polivalente/follow.rb', line 18

def followee_name
  followee.name
end

#follower_nameObject

broadcasts_to -> (follow) { “follows” }



14
15
16
# File 'app/models/polivalente/follow.rb', line 14

def follower_name
  follower.name
end