HabitatMap/AirCasting

View on GitHub
app/controllers/api/v2/data/sessions_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Api
  module V2
    module Data
      class SessionsController < ActionController::Base
        def last
          GoogleAnalyticsWorker::RegisterEvent.async_call('Sessions#last')

          render json: IdSerializer.new(::Session.last)
        end
      end
    end
  end
end