app/controllers/feeds_controller.rb
def webhook_update
    @feed = Feed.find(params[:id])
    Resque.enqueue(FeedParser, @feed.id, @feed.url)
    render status: 200, plain: ''
  end
# POST PubSubHubbub - newly pushed entries
# also used for subscription confirmation
POST PubSubHubbub - newly pushed entries
also used for subscription confirmation
POST PubSubHubbub - newly pushed entries also used for subscription confirmation
def webhook_update
    @feed = Feed.find(params[:id])
    Resque.enqueue(FeedParser, @feed.id, @feed.url)
    render status: 200, plain: ''
  end
def webhook_update @feed = Feed . find ( params [ :id ] ) Resque . enqueue ( FeedParser , @feed . id , @feed . url ) render status : 200 , plain : '' end
POST PubSubHubbub - newly pushed entries
also used for subscription confirmation
POST PubSubHubbub - newly pushed entries also used for subscription confirmation