lib/omniauth/form.rb in omniauth-1.1.3 vs lib/omniauth/form.rb in omniauth-1.1.4
- old
+ new
@@ -93,10 +93,11 @@
options[:header_info] ||= ""
self.options = options
@html = ""
@with_custom_button = false
+ @footer = nil
header(options[:title],options[:header_info])
end
def self.build(options = {},&block)
form = OmniAuth::Form.new(options)
@@ -139,11 +140,11 @@
@html << html
end
def fieldset(legend, options = {}, &block)
@html << "\n<fieldset#{" style='#{options[:style]}'" if options[:style]}#{" id='#{options[:id]}'" if options[:id]}>\n <legend>#{legend}</legend>\n"
- self.instance_eval &block
+ self.instance_eval(&block)
@html << "\n</fieldset>"
self
end
def header(title,header_info)
@@ -180,10 +181,10 @@
@html
end
def to_response
footer
- Rack::Response.new(@html).finish
+ Rack::Response.new(@html, 200, {"content-type" => "text/html"}).finish
end
protected
def css