fixed issue where first argument was not a symbol
This commit is contained in:
parent
cdad799e3a
commit
ef13d9a692
1 changed files with 1 additions and 3 deletions
|
@ -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"
|
||||||
|
|
Reference in a new issue