fixed something what could be a problem when options is nil
This commit is contained in:
parent
8b0f535bd2
commit
46d56237ff
1 changed files with 5 additions and 1 deletions
|
@ -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
|
Reference in a new issue