lib/nelumba-mongodb/feed.rb
def post!(activity)
      if activity.is_a?(Hash)
        # Create a new activity
        activity = Nelumba::Activity.create!(activity)
      end

      activity.feed_id = self.id
      activity.save

      self.items << activity
      self.save

      publish(activity)

      activity
    end
# Add to the feed and tell subscribers.
Add to the feed and tell subscribers.
Add to the feed and tell subscribers .
def post!(activity)
      if activity.is_a?(Hash)
        activity = Nelumba::Activity.create!(activity)
      end
      activity.feed_id = self.id
      activity.save
      self.items << activity
      self.save
      publish(activity)
      activity
    end
def post! ( activity ) if activity . is_a? ( Hash ) activity = Nelumba :: Activity . create! ( activity ) end activity . feed_id = self . id activity . save self . items << activity self . save publish ( activity ) activity end
Add to the feed and tell subscribers.
Add to the feed and tell subscribers .
# Create a new activity
activity