Fixed doc of find_mapping method

This commit is contained in:
Rafael Mendonça França 2011-05-05 18:35:19 -07:00
parent 05797f6df2
commit 87b670787a
1 changed files with 1 additions and 1 deletions

View File

@ -347,7 +347,7 @@ module SimpleForm
# a) Try to find an alternative with the same name in the Object scope
# b) Or use the found mapping
# 2) If not, fallbacks to #{input_type}Input
# 3) If not, fallbacks to SimpleForm::Inputs::#{input_type}
# 3) If not, fallbacks to SimpleForm::Inputs::#{input_type}Input
def find_mapping(input_type) #:nodoc:
discovery_cache[input_type] ||=
if mapping = self.class.mappings[input_type]