lib/mobylette/resolvers/chained_fallback_resolver.rb
def find_templates(name, prefix, partial, details)
        # checks if the format has a fallback chain
        if @fallback_formats.has_key?(details[:formats].first)
          details = details.dup
          details[:formats] = Array.wrap(@fallback_formats[details[:formats].first]) 
        end
        super(name, prefix, partial, details)
      end
# Private: finds the right template on the filesystem,
#         using fallback if needed
#
finds the right template on the filesystem,
using fallback if needed
finds the right template on the filesystem using fallback if needed
def find_templates(name, prefix, partial, details)
        if @fallback_formats.has_key?(details[:formats].first)
          details = details.dup
          details[:formats] = Array.wrap(@fallback_formats[details[:formats].first]) 
        end
        super(name, prefix, partial, details)
      end
def find_templates ( name , prefix , partial , details ) if @fallback_formats . has_key? ( details [ :formats ] . first ) details = details . dup details [ :formats ] = Array . wrap ( @fallback_formats [ details [ :formats ] . first ] ) end super ( name , prefix , partial , details ) end
Private: finds the right template on the filesystem,
using fallback if needed
Private : finds the right template on the filesystem using fallback if needed
# checks if the format has a fallback chain
name
prefix
partial
details