Changeset 1265
- Timestamp:
- 01/10/08 10:22:25 (9 months ago)
- Files:
-
- trunk/lib/merb/mixins/inline_partial.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/merb/mixins/inline_partial.rb
r1264 r1265 9 9 @web_controller.send(:find_partial, template, opts) 10 10 11 template_method = found_template .gsub(/[^\.a-zA-Z0-9]/, "__").gsub(/\./, "_")11 template_method = found_template && found_template.gsub(/[^\.a-zA-Z0-9]/, "__").gsub(/\./, "_") 12 12 13 unless template && self.respond_to?(template_method)13 unless template_method && self.respond_to?(template_method) 14 14 return super 15 15 end
