lib/nelumba-mongodb/person.rb
def followed_by!(author)
      if author.is_a? Nelumba::Identity
        author = author.person
      end

      return if author.nil?

      # add them from our list
      self.followers << author
      self.save

      # determine their feed
      self.activities.followed_by! author.identity.inbox
    end
# Updates to show we are now followed by the given Person.
Updates to show we are now followed by the given Person.
Updates to show we are now followed by the given Person .
def followed_by!(author)
      if author.is_a? Nelumba::Identity
        author = author.person
      end
      return if author.nil?
      self.followers << author
      self.save
      self.activities.followed_by! author.identity.inbox
    end
def followed_by! ( author ) if author . is_a? Nelumba :: Identity author = author . person end return if author . nil? self . followers << author self . save self . activities . followed_by! author . identity . inbox end
Updates to show we are now followed by the given Person.
Updates to show we are now followed by the given Person .
# add them from our list # determine their feed
author