From 571ba1e0b180eda762350d2574be543cc031309d Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Fri, 3 May 2013 23:59:22 -0300 Subject: [PATCH] Add nodoc to internal lookup methods These methods are completely internal for the inputs to use and should never be called from outside. I just hope no one ever creates an attribute called "lookup_action" :D. --- lib/simple_form/form_builder.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/simple_form/form_builder.rb b/lib/simple_form/form_builder.rb index 61d12cd3..a2ed4201 100644 --- a/lib/simple_form/form_builder.rb +++ b/lib/simple_form/form_builder.rb @@ -443,7 +443,7 @@ module SimpleForm # route[blocks_attributes][0][blocks_learning_object_attributes][1][foo_attributes] # ["route", "blocks", "blocks_learning_object", "foo"] # - def lookup_model_names + def lookup_model_names #:nodoc: @lookup_model_names ||= begin child_index = options[:child_index] names = object_name.to_s.scan(/([a-zA-Z_]+)/).flatten @@ -454,7 +454,7 @@ module SimpleForm end # The action to be used in lookup. - def lookup_action + def lookup_action #:nodoc: @lookup_action ||= begin action = template.controller && template.controller.action_name return unless action