Changeset 1182

Show
Ignore:
Timestamp:
01/06/08 12:10:22 (11 months ago)
Author:
wyca..@gmail.com
Message:

Fixes a bug with inline_partial

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/merb/mixins/inline_partial.rb

    r1176 r1182  
    1616 
    1717    if with = opts.delete(:with) 
    18       as = opts.delete(:as) || template.match(/(.*\/_)([^\.]*)/)[2] 
    19       @_merb_partial_locals = opts         
     18      as = opts.delete(:as) || found_template.match(/(.*\/_)([^\.]*)/)[2] 
     19      @_merb_partial_locals = opts 
    2020      sent_template = [with].flatten.map do |temp| 
    2121        @_merb_partial_locals[as.to_sym] = temp