aboutsummaryrefslogtreecommitdiffstats
path: root/railties/html
diff options
context:
space:
mode:
Diffstat (limited to 'railties/html')
-rw-r--r--railties/html/javascripts/prototype.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/railties/html/javascripts/prototype.js b/railties/html/javascripts/prototype.js
index b7647f2714..ca772aa8fa 100644
--- a/railties/html/javascripts/prototype.js
+++ b/railties/html/javascripts/prototype.js
@@ -357,13 +357,11 @@ Form.Element = {
Form.Element.Serializers = {
input: function(element) {
switch (element.type.toLowerCase()) {
- case 'hidden':
- case 'password':
- case 'text':
- return Form.Element.Serializers.textarea(element);
case 'checkbox':
case 'radio':
return Form.Element.Serializers.inputSelector(element);
+ default:
+ return Form.Element.Serializers.textarea(element);
}
return false;
},