Changeset 1264

Show
Ignore:
Timestamp:
01/10/08 10:19:43 (8 months ago)
Author:
wyca..@gmail.com
Message:

Inline Partial works better

Files:

Legend:

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

    r1226 r1264  
    1111    template_method = found_template.gsub(/[^\.a-zA-Z0-9]/, "__").gsub(/\./, "_") 
    1212 
    13     unless self.respond_to?(template_method) 
     13    unless template && self.respond_to?(template_method) 
    1414      return super 
    1515    end