Sha256: a192fe51f00470a1518d5b371473c7392fdf431b5ac5c96538c9f52c600894c3

Contents?: true

Size: 816 Bytes

Versions: 1

Compression:

Stored size: 816 Bytes

Contents

# frozen_string_literal: true

# == Schema Information
#
# Table name: rmp_traces
#
#  id                      :integer          not null, primary key
#  rmp_profiled_request_id :bigint           not null
#  name                    :string
#  start                   :integer
#  finish                  :integer
#  duration                :integer
#  allocations             :integer
#  payload                 :json
#  backtrace               :json
#  created_at              :datetime         not null
#  updated_at              :datetime         not null
#
module RailsMiniProfiler
  class SequelTrace < Trace
    store :payload, accessors: %i[name sql binds]

    class << self
      def find_sti_class(_)
        super(name)
      end

      def sti_name
        'sql.active_record'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_mini_profiler-0.1.0 app/models/rails_mini_profiler/sequel_trace.rb