Sha256: 34c60283cb704e8cfb3b2ffe67f61518cad57c4fd2480807ac86b58e556d1e79
Contents?: true
Size: 580 Bytes
Versions: 19
Compression:
Stored size: 580 Bytes
Contents
module Adminpanel module Analytics module TwitterAnalytics extend ActiveSupport::Concern included do before_action :get_twitter_token, only:[:twitter, :reply_to_tweet, :favorite_tweet, :retweet_tweet] end def reply_to_tweet @twitter_client.update params[:tweet], in_reply_to_status_id: params[:id] redirect_to twitter_analytics_path end def favorite_tweet @twitter_client.favorite(params[:id]) end def retweet_tweet @twitter_client.retweet(params[:id]) end end end end
Version data entries
19 entries across 19 versions & 1 rubygems