Sha256: a48fcc66ca43b87069e58946547b7882d12285b532ae46b25a3e578f42069443

Contents?: true

Size: 558 Bytes

Versions: 1

Compression:

Stored size: 558 Bytes

Contents

module Ruhl
  class Plugin < ActionView::TemplateHandler

    def initialize(action_view)
      @action_view = action_view
    end
    
    def render(template, options)
      layout = @action_view.controller.send(:active_layout)

      puts "==========> @action_view: #{@action_view.controller.response.inspect}"
      puts "==========> template: #{template.inspect}"
      puts "==========> options: #{options.inspect}"
    end
  end
end

ActionView::Template.register_template_handler(:ruhl, Ruhl::Plugin)

ActionView::Template.exempt_from_layout(:ruhl)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruhl-0.6.0 lib/ruhl/rails.rb