Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix type casting to Decimal from Float with ... | joker1007 | 2014-08-01 | 1 | -4/+17 |
| | | | | | When I defines large precision column at RDBMS, I assigns float value, raise ArgumentError (precision too large). | ||||
* | Prefer if/else for this case | Rafael Mendonça França | 2014-07-17 | 1 | -3/+2 |
| | | | | | One of the branches is using a proc to check if the value respond_to a method so it is better to not do case comparations | ||||
* | Fix decimal_test module and add new test for object responding to to_d | Mariano Valles | 2014-07-16 | 1 | -1/+0 |
| | |||||
* | Fix case statement to use ::Numeric and ::String | Mariano Valles | 2014-07-16 | 1 | -1/+1 |
| | |||||
* | Change class evaluation for Rationals in cast_value | Mariano Valles | 2014-07-16 | 1 | -4/+6 |
| | |||||
* | Fix rational to decimal on type_cast_from_user | Mariano Valles | 2014-07-16 | 1 | -1/+3 |
| | |||||
* | Removed unused `klass` definitions from types | Sean Griffin | 2014-06-06 | 1 | -4/+0 |
| | | | | Only `Date` and `Time` are handled. | ||||
* | refactor, introduce `Type#type_cast_for_schema` to cast for schema.rb | Yves Senn | 2014-05-30 | 1 | -0/+4 |
| | | | | | | | This removes the case statement in `SchemaDumper` and gives every `Type` the possibility to control the SchemaDumper default value output. /cc @sgrif | ||||
* | Move types to the top level `ActiveRecord` namespace | Sean Griffin | 2014-05-27 | 1 | -0/+25 |
`ActiveRecord::ConnectionAdapters::Type::Value` => `ActiveRecord::Type::Value` |