fixed issue where first argument was not a symbol

This commit is contained in:
Jeena Paradies 2010-08-11 01:38:02 +02:00
parent cdad799e3a
commit ef13d9a692

View file

@ -2,10 +2,8 @@ module ActionController
class Base class Base
def render_with_plist(options = nil, extra_options = {}, &block) def render_with_plist(options = nil, extra_options = {}, &block)
plist = options.delete(:plist) unless options.nil? if options and options.is_a?(Hash) and plist = options.delete(:plist)
if plist
response.headers["Location"] = options[:location] unless options[:location].blank? response.headers["Location"] = options[:location] unless options[:location].blank?
options[:content_type] ||= Mime::PLIST options[:content_type] ||= Mime::PLIST
options[:disposition] ||= "inline" options[:disposition] ||= "inline"