Correction pour l'url publiée dans twitter

This commit is contained in:
echarp 2014-10-05 21:38:12 +02:00
parent 2f677263a0
commit ef8dd9d4b4
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ class ModerationsController < ApplicationController
config.access_token = ENV['TWITTER_ACCESS_TOKEN']
config.access_token_secret = ENV['TWITTER_ACCESS_SECRET']
end
client.update "#{@event.to_tweet events_url(@event)}" if client.consumer_key
client.update "#{@event.to_tweet event_url(@event)}" if client.consumer_key
end
def send_destroy_mails

View File

@ -22,7 +22,7 @@
%h3=t '.tweet_helper'
= @event.to_tweet events_url @event
= @event.to_tweet event_url @event
%fieldset
%legend