aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/timestamp_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* restore behavior of touch for models without :updated_xx [#5439 state:resolved]tnp2010-09-241-5/+13
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* @user.touch should not fail if User does not have updated_at/updated_on column.Neeraj Singh2010-08-241-1/+7
| | | | | | [#5439 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Add test case for ActiveRecord::Base.record_timestamps = falseWincent Colaiuta2010-08-241-0/+10
| | | | | | | | This is a failing test case for Lighthouse ticket #5440: https://rails.lighthouseapp.com/projects/8994/tickets/5440 Signed-off-by: José Valim <jose.valim@gmail.com>
* Restore pet -> owner relationship to the previous stateSantiago Pastorino2010-08-161-1/+1
| | | | [#5365]
* added testcase for belongs_to with a counter_cache and touchMark Turner2010-08-161-0/+16
| | | | | | [#5365 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-14/+14
| | | | 's/[ \t]*$//' -i {} \;)
* move reload after touchBrian Lopez2010-08-021-1/+1
|
* reload the owner model after updateBrian Lopez2010-08-021-0/+1
|
* Add an internal (private API) after_touch callback. [#5271 state:resolved]José Valim2010-08-021-4/+4
|
* added failing touch propagation testJakub Kuźma2010-08-021-0/+17
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* with this fix touch method - does not call validations - doest not call ↵Neeraj Singh2010-07-131-0/+10
| | | | | | | | callbacks - updates updated_at/on along with attribute if attribute is provided - marks udpated_at/on and attribute as NOT changed [#2520 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Final iteration of use better testing methodsNeeraj Singh2010-05-191-8/+8
| | | | | | [#4652 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Added :touch option to belongs_to associations that will touch the parent ↵David Heinemeier Hansson2009-04-161-1/+46
| | | | record when the current record is saved or destroyed [DHH]
* Added ActiveRecord::Base#touch to update the updated_at/on attributes with ↵David Heinemeier Hansson2009-04-161-0/+30
the current time [DHH]