lib/remotipart.rb in remotipart-0.3.4 vs lib/remotipart.rb in remotipart-0.4
- old
+ new
@@ -1,15 +1,3 @@
-module Remotipart
- def remotipart_response(options = {}, &block)
- content = with_output_buffer(&block)
- if params[:remotipart_submitted]
- response.content_type = Mime::HTML
- text_area_tag('remotipart_response', String.new(content), options)
- else
- content
- end
- end
-end
-
-class ActionView::Base
- include Remotipart
-end
+require 'remotipart/view_helper'
+require 'remotipart/request_helper'
+require 'remotipart/rails' if defined?(Rails)