Changeset 182 for trunk/lib/globalize
- Timestamp:
- 12/17/07 17:38:44 (1 year ago)
- Files:
-
- trunk/lib/globalize/rails/action_view.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/globalize/rails/action_view.rb
r179 r182 6 6 # Name of file extensions which are handled internally in rails. Other types 7 7 # like liquid has to register through register_handler. 8 @@re_extension = /\.( rjs|rhtml|rxml)$/8 @@re_extension = /\.(erb|rjs|builder)$/ 9 9 10 10 @@globalize_path_cache = {} … … 37 37 return cached if cached 38 38 39 if use_full_path 40 template_path_without_extension, template_extension = path_and_extension(template_path) 41 39 template_path_without_extension, template_extension = path_and_extension(template_path) 40 if use_full_path 42 41 if template_extension 43 42 template_file_name = full_template_path(template_path_without_extension, template_extension) … … 48 47 end 49 48 template_file_name = full_template_path(template_path, template_extension) 50 template_extension = template_extension.gsub(/^ \w+\./, '') # strip off any formats49 template_extension = template_extension.gsub(/^.+\./, '') # strip off any formats 51 50 end 52 51 else
