File: looser_typecasting.rb

# looser_typecasting.rb

Path: | lib/sequel/extensions/looser_typecasting.rb
Last Update: | Tue Mar 23 13:05:21 +0000 2010

The LooserTypecasting extension changes the float and integer typecasting to use the looser .to_f and .to_i instead of the more strict Kernel.Float and Kernel.Integer. To use it, you should extend the database with the Sequel::LooserTypecasting module after loading the extension:

      Sequel.extension :looser_typecasting
      DB.extend(Sequel::LooserTypecasting)

[Validate]