Sha256: 28d988ea142e888f07ab0f99e0c9725dde0cc182bb652e5d0a256b0fec98bd7b
Contents?: true
Size: 774 Bytes
Versions: 1
Compression:
Stored size: 774 Bytes
Contents
class ActionView::PathSet # Try to find fbml version if the format is fbjs def find_template_with_facebooker(original_template_path, format = nil, html_fallback = true) find_template_without_facebooker(original_template_path, format, html_fallback) rescue ActionView::MissingTemplate template_path = original_template_path.sub(/^\//, '') each do |load_path| if format == :fbjs && html_fallback && template = load_path["#{template_path}.#{I18n.locale}.fbml"] return template elsif format == :fbjs && html_fallback && template = load_path["#{template_path}.fbml"] return template end raise MissingTemplate.new(self, original_template_path, format) end end alias_method_chain :find_template, :facebooker end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facebooker-rails3-1.0.64 | lib/facebooker/rails/extensions/action_view.rb |