Sha256: ceda789bdd50102c2272fd548936a33f35926f69da8e815297da61bb9caea9c6

Contents?: true

Size: 314 Bytes

Versions: 27

Compression:

Stored size: 314 Bytes

Contents

module Ahoy
  class VisitsController < BaseController
    def create
      ahoy.track_visit

      render json: {
        visit_token: ahoy.visit_token,
        visitor_token: ahoy.visitor_token,
        # legacy
        visit_id: ahoy.visit_token,
        visitor_id: ahoy.visitor_token
      }
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
ahoy_matey-3.0.1 app/controllers/ahoy/visits_controller.rb
ahoy_matey-3.0.0 app/controllers/ahoy/visits_controller.rb
ahoy_matey-2.2.1 app/controllers/ahoy/visits_controller.rb
ahoy_matey-2.2.0 app/controllers/ahoy/visits_controller.rb
ahoy_matey-2.1.0 app/controllers/ahoy/visits_controller.rb
ahoy_matey-2.0.2 app/controllers/ahoy/visits_controller.rb
ahoy_matey-2.0.1 app/controllers/ahoy/visits_controller.rb