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