1 class ActionView::PathSet
3 # Try to find fbml version if the format is fbjs
4 def find_template_with_facebooker(original_template_path, format = nil, html_fallback = true)
5 find_template_without_facebooker(original_template_path, format, html_fallback)
6 rescue ActionView::MissingTemplate
7 template_path = original_template_path.sub(/^\//, '')
10 if format == :fbjs && html_fallback && template = load_path["#{template_path}.#{I18n.locale}.fbml"]
12 elsif format == :fbjs && html_fallback && template = load_path["#{template_path}.fbml"]
16 raise MissingTemplate.new(self, original_template_path, format)
20 alias_method_chain :find_template, :facebooker