Sha256: 6e872b01a030c1f46cdac2962ebf2daa2644e649cea7e980760b80287e0dd24a

Contents?: true

Size: 275 Bytes

Versions: 4

Compression:

Stored size: 275 Bytes

Contents

module ActionView
  module TemplateHandlers
    class RJS < TemplateHandler
      include Compilable

      def compile(template)
        "controller.response.content_type ||= Mime::JS;" +
          "update_page do |page|;#{template.source}\nend"
      end
    end
  end
end

Version data entries

4 entries across 3 versions & 2 rubygems

Version Path
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/actionpack/lib/action_view/template_handlers/rjs.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/actionpack/pkg/actionpack-2.2.2/lib/action_view/template_handlers/rjs.rb
actionpack-2.2.3 lib/action_view/template_handlers/rjs.rb
actionpack-2.2.2 lib/action_view/template_handlers/rjs.rb