OSDN Git Service

fix initial value is invalid at custom field
[quickedit/quick_edit.git] / app / helpers / application_helper.rb
index a033fce..2e80fbb 100644 (file)
@@ -13,6 +13,7 @@ module ApplicationHelper
          pattern = '\d{4}-\d{2}-\d{2}'
          help_message += " (yyyy-mm-dd)"
       end
+      logger.info("#{target_field} => #{field_type} : " + default_value.inspect + ", " + default_value.class.name + ", " + default_value.nil?.to_s); 
 
       pattern = h(pattern.gsub(/\\/,'\\\\\\\\'))