aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/template/handlers/rjs.rb
blob: 128be5077c00ecf5ae5bfe0c1fc9132b3f739912 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module ActionView
  module Template::Handlers
    class RJS < Template::Handler
      include Compilable

      self.default_format = Mime::JS

      def compile(template)
        "update_page do |page|;#{template.source}\nend"
      end

      def default_format
        Mime::JS
      end
    end
  end
end