Sha256: ab4133856e744f8e88658317d217a974be20653d20f0f55279e9bdb309e70200

Contents?: true

Size: 290 Bytes

Versions: 11

Compression:

Stored size: 290 Bytes

Contents

module ActionView
  module TemplateHandlers
    class RJS < TemplateHandler
      def self.line_offset
        2
      end

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

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
actionpack-2.0.2 lib/action_view/template_handlers/rjs.rb
actionpack-2.0.5 lib/action_view/template_handlers/rjs.rb
actionpack-2.0.4 lib/action_view/template_handlers/rjs.rb
radiant-0.6.5.1 vendor/rails/actionpack/lib/action_view/template_handlers/rjs.rb
radiant-0.6.5 vendor/rails/actionpack/lib/action_view/template_handlers/rjs.rb
radiant-0.6.6 vendor/rails/actionpack/lib/action_view/template_handlers/rjs.rb
radiant-0.6.7 vendor/rails/actionpack/lib/action_view/template_handlers/rjs.rb
radiant-0.6.8 vendor/rails/actionpack/lib/action_view/template_handlers/rjs.rb
radiant-0.6.9 vendor/rails/actionpack/lib/action_view/template_handlers/rjs.rb
spree-0.0.9 vendor/rails/actionpack/lib/action_view/template_handlers/rjs.rb
spree-0.2.0 vendor/rails/actionpack/lib/action_view/template_handlers/rjs.rb