Skip to content

Instantly share code, notes, and snippets.

@SLiNv
Created April 11, 2019 02:20
Show Gist options
  • Save SLiNv/5bbc874daea16d7b4da1eb761f923c4d to your computer and use it in GitHub Desktop.
Save SLiNv/5bbc874daea16d7b4da1eb761f923c4d to your computer and use it in GitHub Desktop.
module ActionView
class TemplateRenderer < AbstractRenderer #:nodoc:
# Determine the template to be rendered using the given options.
def determine_template(options)
keys = options.has_key?(:locals) ? options[:locals].keys : []
if options.key?(:body)
...
elsif options.key?(:file)
with_fallbacks { find_file(options[:file], nil, false, keys, @details) }
...
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment