Sha256: 2b9fe6df49afee77ce50cd2204e0fe880bf845d7d262cbce841f1f020d7c47d8

Contents?: true

Size: 353 Bytes

Versions: 12

Compression:

Stored size: 353 Bytes

Contents

# frozen_string_literal: true

module RailsMiniProfiler
  class InstantiationTracePresenter < TracePresenter
    def label
      "#{model.class_name} Instantiation"
    end

    def description
      record_string = 'Record'.pluralize(model.record_count)
      "Instantiated #{model.record_count} #{model.class_name} #{record_string}"
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rails_mini_profiler-0.7.0 app/presenters/rails_mini_profiler/instantiation_trace_presenter.rb
rails_mini_profiler-0.6.0 app/presenters/rails_mini_profiler/instantiation_trace_presenter.rb
rails_mini_profiler-0.5.0 app/presenters/rails_mini_profiler/instantiation_trace_presenter.rb
rails_mini_profiler-0 app/presenters/rails_mini_profiler/instantiation_trace_presenter.rb
rails_mini_profiler-0.4.0 app/presenters/rails_mini_profiler/instantiation_trace_presenter.rb
rails_mini_profiler-0.3.0 app/presenters/rails_mini_profiler/instantiation_trace_presenter.rb
rails_mini_profiler-0.2.1 app/presenters/rails_mini_profiler/instantiation_trace_presenter.rb
rails_mini_profiler-0.2.0 app/presenters/rails_mini_profiler/instantiation_trace_presenter.rb
rails_mini_profiler-0.1.3 app/presenters/rails_mini_profiler/instantiation_trace_presenter.rb
rails_mini_profiler-0.1.2 app/presenters/rails_mini_profiler/instantiation_trace_presenter.rb
rails_mini_profiler-0.1.1 app/presenters/rails_mini_profiler/instantiation_trace_presenter.rb
rails_mini_profiler-0.1.0 app/presenters/rails_mini_profiler/instantiation_trace_presenter.rb