Changeset 1265

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

whoops; inline partials really work

Files:

Legend:

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

    r1264 r1265  
    99      @web_controller.send(:find_partial, template, opts) 
    1010 
    11     template_method = found_template.gsub(/[^\.a-zA-Z0-9]/, "__").gsub(/\./, "_") 
     11    template_method = found_template && found_template.gsub(/[^\.a-zA-Z0-9]/, "__").gsub(/\./, "_") 
    1212 
    13     unless template && self.respond_to?(template_method) 
     13    unless template_method && self.respond_to?(template_method) 
    1414      return super 
    1515    end