Adam Meehan
|
5c03d3d645
|
added define_write_method with simple parse and cace for dates, times and datetimes when time zone conversion is off and default for Rails 2.0
|
2008-07-23 12:42:03 +10:00 |
|
Adam Meehan
|
5885290304
|
added back Rails 2.1 check for time zone conversion attribute in define_attributes_methods and check for Rails 2.0 to return true if Time class column
|
2008-07-22 12:59:37 +10:00 |
|
Adam Meehan
|
28b44b4ca6
|
some docs tweaks and spec value changes
|
2008-07-22 11:47:17 +10:00 |
|
Adam Meehan
|
800b187d08
|
added Date class define write method convert with parser
removed strict_time_type_cast method and use parse method directly
|
2008-07-22 10:11:27 +10:00 |
|
Adam Meehan
|
5e08a10fb0
|
renamed calls to timeliness_date_time_parse to parse_date_time which will correctly an overrided method
|
2008-07-21 13:48:25 +10:00 |
|
Adam Meehan
|
89d6d4ac14
|
doc tweak
|
2008-07-11 16:37:02 +10:00 |
|
Adam Meehan
|
ef68b3d0f9
|
added type to parse method for dummy time check mainly
added default datetime type to call to parse from strict type cast
|
2008-07-08 10:42:02 +10:00 |
|
Adam Meehan
|
8ac04e8610
|
doc rewording
|
2008-07-07 19:05:27 +10:00 |
|
Adam Meehan
|
bb0e64857a
|
changed Dirty check to full name and changed docs
|
2008-07-07 15:18:30 +10:00 |
|
Adam Meehan
|
67183eb69f
|
changed strict_time_type_cast to use validation parse method to unify and allow pluggable parsers
|
2008-07-01 11:33:20 +10:00 |
|
Adam Meehan
|
a27e4172a7
|
added check for already changed attribute
added some more documentation
|
2008-07-01 10:00:30 +10:00 |
|
Adam Meehan
|
a69e018992
|
added dirty attribute handling
|
2008-06-30 22:37:13 +10:00 |
|
Adam Meehan
|
39e16d2fde
|
fixed error on database write with saving cached values for time attributes which have been converted
|
2008-06-30 16:30:13 +10:00 |
|
Adam Meehan
|
ed23c4a9a4
|
refactored to convert and cache user input value on write to distinguish from values in read raw from database which allows correct timezone conversion
added override for read_attribute to check for failed time type cast which should save nil value
|
2008-06-30 15:38:33 +10:00 |
|
Adam Meehan
|
ec12d60224
|
changed spec_helper rails version selection to use VERSION
added RAILS_VER constant for version checking
fixed rspec module include requirement for 1.1.4 in specs
|
2008-06-27 09:56:45 +10:00 |
|
Adam Meehan
|
685b0054fe
|
set time zone aware attributes on in spec helper for AR
|
2008-05-22 07:35:01 +10:00 |
|
Adam Meehan
|
a9b033e539
|
added strict_time_type_cast method to handle casting
refactored to be simler and rely on read_atribute method conversion
rather than use new reader method definer got time (Rails 2.1)
|
2008-05-21 16:55:10 +10:00 |
|
Adam Meehan
|
d3b126729b
|
modified conversion for rails <= 2.0.2 to be faster usign schema
conversion methods
|
2008-05-21 11:01:41 +10:00 |
|
Adam Meehan
|
c6312329ec
|
changed rails version detection to be tighter to avoid rails RC problem
added rspec on rails validate_timeliness_of matcher
|
2008-05-15 11:00:07 +10:00 |
|
Adam Meehan
|
4ee24faad4
|
switched to using Rails::VERSION constant instead of AR which doesn't
seem to be available on rails boot
|
2008-05-05 09:41:16 +10:00 |
|
Adam Meehan
|
05a2d53b9a
|
moved attribute methods modules into Old and New for rails versions
|
2008-05-05 09:11:43 +10:00 |
|
Adam Meehan
|
8751eddac6
|
adds module for rails 2.0.x to add reader method for date checking
includes right module based on AR version
better vendored rails check in spec_helper
|
2008-05-03 13:03:01 +10:00 |
|
Adam Meehan
|
3cf6e64747
|
fixed up AR 2.0.x timezone support
|
2008-05-03 08:44:41 +10:00 |
|
Adam Meehan
|
fe7310fc10
|
fixed read method to use value before type cast
added AR version checks in specs
include AR from vendor if in Rails app
|
2008-05-03 08:08:28 +10:00 |
|
Adam Meehan
|
591ea3126b
|
first commit
|
2008-05-02 16:42:51 +10:00 |
|