aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/template/handlers/rjs.rb
blob: 9d710591346935954a0574022a9f2b8e9ad3cd06 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
module ActionView
  module Template::Handlers
    class RJS
      # Default format used by RJS.
      class_attribute :default_format
      self.default_format = Mime::JS

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