Sha256: cce8c4e9e33a34d5d735fe54a2992e379f30181c573c23863d9b1f7679d1ecfa

Contents?: true

Size: 813 Bytes

Versions: 28

Compression:

Stored size: 813 Bytes

Contents

require "skylight/normalizers/render"

module Skylight
  module Normalizers
    module ActionView
      # Normalizer for Rails collection rendering
      class RenderCollection < RenderNormalizer
        register "render_collection.action_view"

        CAT = "view.render.collection".freeze

        # @param trace [Skylight::Messages::Trace::Builder] ignored, only present to match API
        # @param name [String] ignored, only present to match API
        # @param payload (see RenderNormalizer#normalize_render)
        # @option payload (see RenderNormalizer#normalize_render)
        # @option payload [Integer] :count
        # @return (see RenderNormalizer#normalize_render)
        def normalize(_trace, _name, payload)
          normalize_render(CAT, payload)
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
skylight-6.1.0.beta lib/skylight/normalizers/action_view/render_collection.rb
skylight-6.0.4 lib/skylight/normalizers/action_view/render_collection.rb
skylight-6.0.3 lib/skylight/normalizers/action_view/render_collection.rb
skylight-5.3.5 lib/skylight/normalizers/action_view/render_collection.rb
skylight-6.0.2 lib/skylight/normalizers/action_view/render_collection.rb
skylight-6.0.1 lib/skylight/normalizers/action_view/render_collection.rb
skylight-6.0.0 lib/skylight/normalizers/action_view/render_collection.rb
skylight-6.0.0.beta2 lib/skylight/normalizers/action_view/render_collection.rb
skylight-6.0.0.beta lib/skylight/normalizers/action_view/render_collection.rb
skylight-5.3.4 lib/skylight/normalizers/action_view/render_collection.rb
skylight-5.3.3 lib/skylight/normalizers/action_view/render_collection.rb
skylight-5.3.2 lib/skylight/normalizers/action_view/render_collection.rb
skylight-5.3.1 lib/skylight/normalizers/action_view/render_collection.rb
skylight-5.3.0 lib/skylight/normalizers/action_view/render_collection.rb
skylight-5.2.0 lib/skylight/normalizers/action_view/render_collection.rb
skylight-5.2.0.beta2 lib/skylight/normalizers/action_view/render_collection.rb
skylight-5.2.0.beta lib/skylight/normalizers/action_view/render_collection.rb
skylight-5.1.1 lib/skylight/normalizers/action_view/render_collection.rb
skylight-5.1.0.beta3 lib/skylight/normalizers/action_view/render_collection.rb
skylight-5.1.0.beta2 lib/skylight/normalizers/action_view/render_collection.rb