diff options
author | Eugene Gilburg <eugene.gilburg@gmail.com> | 2014-07-18 20:37:17 -0700 |
---|---|---|
committer | Eugene Gilburg <eugene.gilburg@gmail.com> | 2014-07-18 20:54:30 -0700 |
commit | 348de3a06e802fb651d675aa3a9b2aaaf48ec572 (patch) | |
tree | fac494d134a5ca231879843441b6b3f5636e18d0 /actionview/lib | |
parent | 38117adfe370f0f13503f602cc90ced874428d52 (diff) | |
download | rails-348de3a06e802fb651d675aa3a9b2aaaf48ec572.tar.gz rails-348de3a06e802fb651d675aa3a9b2aaaf48ec572.tar.bz2 rails-348de3a06e802fb651d675aa3a9b2aaaf48ec572.zip |
marking private methods which dont work if called on their own anyways
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/renderer/partial_renderer.rb | 2 | ||||
-rw-r--r-- | actionview/lib/action_view/renderer/template_renderer.rb | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/actionview/lib/action_view/renderer/partial_renderer.rb b/actionview/lib/action_view/renderer/partial_renderer.rb index a8d2094f72..0407632435 100644 --- a/actionview/lib/action_view/renderer/partial_renderer.rb +++ b/actionview/lib/action_view/renderer/partial_renderer.rb @@ -312,6 +312,8 @@ module ActionView end end + private + def render_collection return nil if @collection.blank? diff --git a/actionview/lib/action_view/renderer/template_renderer.rb b/actionview/lib/action_view/renderer/template_renderer.rb index 7bf527bfda..f3a48ecfa0 100644 --- a/actionview/lib/action_view/renderer/template_renderer.rb +++ b/actionview/lib/action_view/renderer/template_renderer.rb @@ -14,8 +14,10 @@ module ActionView render_template(template, options[:layout], options[:locals]) end + private + # Determine the template to be rendered using the given options. - def determine_template(options) #:nodoc: + def determine_template(options) keys = options.fetch(:locals, {}).keys if options.key?(:body) |