aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/type/time_value.rb
Commit message (Collapse)AuthorAgeFilesLines
* Move non-type objects into the `Type::Helpers` namespaceSean Griffin2015-02-071-38/+0
| | | | | | | The type code is actually quite accessible, and I'm planning to encourage people to look at the files in the `type` folder to learn more about how it works. This will help reduce the noise from code that is less about type casting, and more about random AR nonsense.
* Push multi-parameter assignement into the typesSean Griffin2015-02-071-4/+0
| | | | | | | | | | | | This allows us to remove `Type::Value#klass`, as it was only used for multi-parameter assignment to reach into the types internals. The relevant type objects now accept a hash in addition to their previous accepted arguments to `type_cast_from_user`. This required minor modifications to the tests, since previously they were relying on the fact that mulit-parameter assignement was reaching into the internals of time zone aware attributes. In reaility, changing those properties at runtime wouldn't change the accessor methods for all other forms of assignment.
* Time columns should support time zone aware attributesSean Griffin2015-01-151-0/+4
| | | | | | The types that are affected by `time_zone_aware_attributes` (which is on by default) have been made configurable, in case this is a breaking change for existing applications.
* refactor, introduce `Type#type_cast_for_schema` to cast for schema.rbYves Senn2014-05-301-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` namespaceSean Griffin2014-05-271-0/+34
`ActiveRecord::ConnectionAdapters::Type::Value` => `ActiveRecord::Type::Value`