lib/geokit-rails/adapters/sqlite.rb in geokit-rails-2.3.1 vs lib/geokit-rails/adapters/sqlite.rb in geokit-rails-2.3.2

- old
+ new

@@ -1,11 +1,11 @@ module Geokit module Adapters class SQLite < Abstract def self.add_numeric(name) - @@connection.create_function name, 1, :numeric do |func, *args| + @@connection.create_function name, 1, SQLite3::Constants::TextRep::ANY do |func, *args| func.result = yield(*args) end end def self.add_math(name) @@ -48,6 +48,6 @@ | end end end -end \ No newline at end of file +end