fixed something what could be a problem when options is nil

This commit is contained in:
Jeena Paradies 2010-06-17 21:16:38 +02:00
parent 8b0f535bd2
commit 46d56237ff

View file

@ -22,7 +22,11 @@ end
module ActionController
class Base
def render_with_plist(options = nil, extra_options = {}, &block)
if plist = options[:plist]
plist = nil
plist = options[:plist] unless options.nil?
if plist
if plist.is_a? Array
filename = plist.first.class.name