Sha256: 259510e3b18be668044eec9435011df010709d090b146fbbea94f6f727b7b394

Contents?: true

Size: 313 Bytes

Versions: 69

Compression:

Stored size: 313 Bytes

Contents

module ActionView
  module TemplateHandlers
    class RJS < TemplateHandler
      include Compilable

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

Version data entries

69 entries across 68 versions & 14 rubygems

Version Path
actionpack-2.3.18 lib/action_view/template_handlers/rjs.rb
actionpack_csi-2.3.5.p8 lib/action_view/template_handlers/rjs.rb
actionpack-2.3.17-rack-upgrade-2.3.17 lib/action_view/template_handlers/rjs.rb
actionpack-2.3.17 lib/action_view/template_handlers/rjs.rb
actionpack_csi-2.3.5.p7 lib/action_view/template_handlers/rjs.rb
actionpack_csi-2.3.5.p6 lib/action_view/template_handlers/rjs.rb
actionpack-2.3.16 lib/action_view/template_handlers/rjs.rb
actionpack-rack-upgrade-2-2.3.16 lib/action_view/template_handlers/rjs.rb
actionpack-rack-upgrade-2-2.3.15 lib/action_view/template_handlers/rjs.rb
actionpack-2.3.15 lib/action_view/template_handlers/rjs.rb
actionpack-rack-upgrade-2.3.16 lib/action_view/template_handlers/rjs.rb
actionpack-rack-upgrade-2.3.15 lib/action_view/template_handlers/rjs.rb
actionpack-rack-upgrade-2.3.14 lib/action_view/template_handlers/rjs.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/template_handlers/rjs.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/actionpack-2.3.12/lib/action_view/template_handlers/rjs.rb
actionpack-2.3.14 lib/action_view/template_handlers/rjs.rb
kajam-1.0.3.rc2 vendor/rails/actionpack/lib/action_view/template_handlers/rjs.rb
actionpack-2.3.12 lib/action_view/template_handlers/rjs.rb
radiant-1.0.0.rc2 vendor/rails/actionpack/lib/action_view/template_handlers/rjs.rb
radiant-1.0.0.rc1 vendor/rails/actionpack/lib/action_view/template_handlers/rjs.rb