activerecord-mimer 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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)
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: activerecord-mimer
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.3
6
+ version: 0.0.4
7
7
  date: 2006-11-09 00:00:00 +01:00
8
8
  summary: Mimer support for ActiveRecord.
9
9
  require_paths: