activerecord-mimer 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -94,9 +94,7 @@ begin
|
|
94
94
|
when String
|
95
95
|
if column && column.type == :binary && column.class.respond_to?(:string_to_binary)
|
96
96
|
"#{column.class.string_to_binary(value)}"
|
97
|
-
elsif (column && [:integer, :float].include?(column.type))
|
98
|
-
(column.nil? &&
|
99
|
-
(value =~ /^[-+]?[0-9]+[.]?[0-9]*([eE][-+]?[0-9]+)?$/))
|
97
|
+
elsif (column && [:integer, :float].include?(column.type))
|
100
98
|
value
|
101
99
|
else
|
102
100
|
"'#{quote_string(value)}'" # ' (for ruby-mode)
|