Sha256: c23c2916516e1bf51a504932aadd4b6a416ed27e95019f05a5cb0cd93ca9ffb7

Contents?: true

Size: 362 Bytes

Versions: 6

Compression:

Stored size: 362 Bytes

Contents

if defined?(ActionView) && defined?(ActionView::Template)
  ActionView::Template.class_eval do

    def render_template_with_rack_bug(*args, &block)
      Rack::Bug::TemplatesPanel.record(path_without_format_and_extension) do
        render_template_without_rack_bug(*args, &block)
      end
    end

    alias_method_chain :render_template, :rack_bug
  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
gentooboontoo-rack-bug-0.3.0.edge lib/rack/bug/panels/templates_panel/actionview_extension.rb
ghazel-rack-bug-0.3.0.4 lib/rack/bug/panels/templates_panel/actionview_extension.rb
ghazel-rack-bug-0.3.0.3 lib/rack/bug/panels/templates_panel/actionview_extension.rb
ghazel-rack-bug-0.3.0.2 lib/rack/bug/panels/templates_panel/actionview_extension.rb
ghazel-rack-bug-0.3.0.1 lib/rack/bug/panels/templates_panel/actionview_extension.rb
rack-bug-0.3.0 lib/rack/bug/panels/templates_panel/actionview_extension.rb