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.
This commit is contained in:
Carlos Antonio da Silva 2013-05-03 23:59:22 -03:00
parent f406ecf88e
commit 571ba1e0b1
1 changed files with 2 additions and 2 deletions

View File

@ -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