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,9 +2,7 @@ module ActionController
|
|||
class Base
|
||||
def render_with_plist(options = nil, extra_options = {}, &block)
|
||||
|
||||
plist = options.delete(:plist) unless options.nil?
|
||||
|
||||
if plist
|
||||
if options and options.is_a?(Hash) and plist = options.delete(:plist)
|
||||
|
||||
response.headers["Location"] = options[:location] unless options[:location].blank?
|
||||
options[:content_type] ||= Mime::PLIST
|
||||
|
|
Reference in a new issue