Sha256: a3fb3e6e21ffb8b4eec166862d7d882b9fc7d7c3a3ed30a8e8a70b24317674c6

Contents?: true

Size: 479 Bytes

Versions: 9

Compression:

Stored size: 479 Bytes

Contents

module  Speedup
  module Collectors
    class PartialsCollector < Collector


      def setup_subscribes
        register('render_partial.action_view')
        register('render_collection.action_view')
      end

      # def filter_event?(evt)
      #   super || evt.payload[:name] =~ /schema/i
      # end

      def event_to_data(evt)
        data = super
        data[:identifier] = data[:identifier].gsub(Rails.root.to_s + '/', '')
        data
      end

    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
speedup-rails-0.0.15 lib/speedup/collectors/partials_collector.rb
speedup-rails-0.0.13 lib/speedup/collectors/partials_collector.rb
speedup-rails-0.0.12 lib/speedup/collectors/partials_collector.rb
speedup-rails-0.0.10 lib/speedup/collectors/partials_collector.rb
speedup-rails-0.0.9 lib/speedup/collectors/partials_collector.rb
speedup-rails-0.0.7 lib/speedup/collectors/partials_collector.rb
speedup-rails-0.0.6 lib/speedup/collectors/partials_collector.rb
speedup-rails-0.0.3 lib/speedup/collectors/partials_collector.rb
speedup-rails-0.0.2 lib/speedup/collectors/partials_collector.rb