Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement