Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. module ActionView
  2. class TemplateRenderer < AbstractRenderer #:nodoc:
  3. # Determine the template to be rendered using the given options.
  4. def determine_template(options)
  5. keys = options.has_key?(:locals) ? options[:locals].keys : []
  6. if options.key?(:body)
  7. ...
  8. elsif options.key?(:file)
  9. with_fallbacks { find_file(options[:file], nil, false, keys, @details) }
  10. ...
  11. end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement