diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-11-17 16:37:17 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-11-17 16:37:17 -0200 |
commit | 5b7b98d5904e9f01f13b783f1a692a1c11168b2d (patch) | |
tree | 0fd337f9d6c5b17620da476d1dd4cc3d1858dd47 /actionview/lib/action_view | |
parent | ed8dc23e8e8ab7d010eb86658db7834a2089708e (diff) | |
download | rails-5b7b98d5904e9f01f13b783f1a692a1c11168b2d.tar.gz rails-5b7b98d5904e9f01f13b783f1a692a1c11168b2d.tar.bz2 rails-5b7b98d5904e9f01f13b783f1a692a1c11168b2d.zip |
document_root_element need to be public
Diffstat (limited to 'actionview/lib/action_view')
-rw-r--r-- | actionview/lib/action_view/test_case.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/actionview/lib/action_view/test_case.rb b/actionview/lib/action_view/test_case.rb index fec980462d..5cffddcd4f 100644 --- a/actionview/lib/action_view/test_case.rb +++ b/actionview/lib/action_view/test_case.rb @@ -125,6 +125,11 @@ module ActionView @_rendered_views ||= RenderedViewsCollection.new end + # Need to experiment if this priority is the best one: rendered => output_buffer + def document_root_element + Nokogiri::HTML::DocumentFragment.parse(@rendered.blank? ? @output_buffer : @rendered) + end + class RenderedViewsCollection def initialize @rendered_views ||= Hash.new { |hash, key| hash[key] = [] } @@ -156,11 +161,6 @@ module ActionView private - # Need to experiment if this priority is the best one: rendered => output_buffer - def document_root_element - Nokogiri::HTML::DocumentFragment.parse(@rendered.blank? ? @output_buffer : @rendered) - end - def say_no_to_protect_against_forgery! _helpers.module_eval do remove_possible_method :protect_against_forgery? |