Skip to content

Instantly share code, notes, and snippets.

@smart
Created September 13, 2008 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smart/10643 to your computer and use it in GitHub Desktop.
Save smart/10643 to your computer and use it in GitHub Desktop.
@@ -219,7 +219,7 @@ module ActiveRecord
s = column.class.string_to_binary(value).unpack("H*")[0]
"x'#{s}'"
elsif value.kind_of?(BigDecimal)
- "'#{value.to_s("F")}'"
+ "#{value.to_s("F")}"
else
super
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment