aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/lib/action_view/template/handlers/rjs.rb
blob: 128be5077c00ecf5ae5bfe0c1fc9132b3f739912 (plain) (tree)
1
2
3
4
5
6
7
8
9
                 

                                 

                        

                                    
                           
                                                       
         



                        


       
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