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-5.2.1 app/controllers/ahoy/visits_controller.rb
ahoy_matey-5.2.0 app/controllers/ahoy/visits_controller.rb
ahoy_matey-5.1.0 app/controllers/ahoy/visits_controller.rb
ahoy_matey-5.0.2 app/controllers/ahoy/visits_controller.rb
ahoy_matey-5.0.1 app/controllers/ahoy/visits_controller.rb
ahoy_matey-5.0.0 app/controllers/ahoy/visits_controller.rb
ahoy_matey-4.2.1 app/controllers/ahoy/visits_controller.rb
ahoy_matey-4.2.0 app/controllers/ahoy/visits_controller.rb
ahoy_matey-4.1.0 app/controllers/ahoy/visits_controller.rb
ahoy_matey-4.0.3 app/controllers/ahoy/visits_controller.rb
ahoy_matey-4.0.2 app/controllers/ahoy/visits_controller.rb
ahoy_matey-4.0.1 app/controllers/ahoy/visits_controller.rb
ahoy_matey-4.0.0 app/controllers/ahoy/visits_controller.rb
ahoy_matey-3.3.0 app/controllers/ahoy/visits_controller.rb
ahoy_matey-3.2.0 app/controllers/ahoy/visits_controller.rb
ahoy_matey-3.1.0 app/controllers/ahoy/visits_controller.rb
ahoy_matey-3.0.5 app/controllers/ahoy/visits_controller.rb
ahoy_matey-3.0.4 app/controllers/ahoy/visits_controller.rb
ahoy_matey-3.0.3 app/controllers/ahoy/visits_controller.rb
ahoy_matey-3.0.2 app/controllers/ahoy/visits_controller.rb