Sha256: 2d1fc2268e227b11fe750550b535ad289b808844877e5dc82b42a84b74ae9d4d

Contents?: true

Size: 313 Bytes

Versions: 1

Compression:

Stored size: 313 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

1 entries across 1 versions & 1 rubygems

Version Path
ahoy_matey-2.0.0 app/controllers/ahoy/visits_controller.rb