Created
April 11, 2019 02:20
-
-
Save SLiNv/5bbc874daea16d7b4da1eb761f923c4d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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