Class: Adminpanel::AnalyticsController

Inherits:
ApplicationController show all
Includes:
Adminpanel::Analytics::InstagramAnalytics
Defined in:
app/controllers/adminpanel/analytics_controller.rb

Instance Method Summary collapse

Methods included from Adminpanel::Analytics::InstagramAnalytics

#instagram_comment

Methods included from GalleryActions

#add_to_gallery, #remove_image

Methods included from FacebookActions

#fb_choose_page, #fb_publish, #fb_save_token

Methods included from SortableActions

#move_to_position

Methods included from RestActions

#create, #destroy, #edit, #new, #show, #update

Methods included from SessionsHelper

#current_user, #current_user=, #sign_in, #sign_out, #signed_in?

Instance Method Details

#indexObject



9
10
# File 'app/controllers/adminpanel/analytics_controller.rb', line 9

def index
end

#instagramObject



12
13
14
15
16
17
# File 'app/controllers/adminpanel/analytics_controller.rb', line 12

def instagram
  authorize! :read, Adminpanel::Analytic
  if !@instagram_token.nil?
    @user = @instagram_client.user
  end
end