twitter-bootstrap-form-builder 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
@@ -31,7 +31,7 @@ module MNE
|
|
31
31
|
# nil - No label, but maintain the rest of the Bootstrap markup
|
32
32
|
# false - Fallback to FormBuilder's implementation (no Bootstrap markup at all)
|
33
33
|
# :help_block => String - Add help sub-text to the field
|
34
|
-
%w(text_field phone_field password_field email_field number_field file_field text_area select
|
34
|
+
%w(text_field phone_field password_field email_field number_field file_field text_area select collection_select date_select datetime_select).each do |method_name|
|
35
35
|
define_method method_name.to_sym do |field, *args|
|
36
36
|
|
37
37
|
# find the options hash, and extract the options for the label tag
|