Changeset 4526
- Timestamp:
- 06/30/06 06:51:22 (2 years ago)
- Files:
-
- trunk/actionmailer/lib/action_mailer/base.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionmailer/lib/action_mailer/base.rb
r4523 r4526 349 349 # TODO: don't hardcode rhtml|rxml 350 350 basename = File.basename(path) 351 next unless md = /^([^\.]+)\.([^\.]+\.[^\ +]+)\.(rhtml|rxml)$/.match(basename)351 next unless md = /^([^\.]+)\.([^\.]+\.[^\.]+)\.(rhtml|rxml)$/.match(basename) 352 352 template_name = basename 353 353 content_type = md.captures[1].gsub('.', '/')