lib/nelumba-mongodb/activity.rb
# Ensure uid and url are established. If they don't exist, just use urls
# that point to us for the sake of uniqueness.
Ensure uid and url are established. If they don't exist, just use urls
that point to us for the sake of uniqueness.
Ensure uid and url are established . If they don ' t exist just use urls that point to us for the sake of uniqueness .
def ensure_uid_and_url
      unless self.uid && self.url
        self.uid = "/activities/#{self.id}"
        self.url = "/activities/#{self.id}"
      end
    end
def ensure_uid_and_url unless self . uid && self . url self . uid = "/activities/#{self.id}" self . url = "/activities/#{self.id}" end end
Ensure uid and url are established.
Ensure uid and url are established .