Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove update_attribute. | Steve Klabnik | 2012-06-14 | 1 | -2/+2 |
| | | | | | | | | | | | Historically, update_attribute and update_attributes are similar, but with one big difference: update_attribute does not run validations. These two methods are really easy to confuse given their similar names. Therefore, update_attribute is being removed in favor of update_column. See the thread on rails-core here: https://groups.google.com/forum/?fromgroups#!topic/rubyonrails-core/BWPUTK7WvYA | ||||
* | Allow instances to disable record_timestamps | Pratik Naik | 2011-10-26 | 1 | -0/+10 |
| | |||||
* | fix typo | Alexandr Zykov | 2011-06-08 | 1 | -1/+1 |
| | |||||
* | This way asserting that updated_at was changed in touch look more obvious. | Dmitriy Kiriyenko | 2011-06-07 | 1 | -0/+1 |
| | |||||
* | Do not use default_scope in ActiveRecord::Persistence#touch. | Dmitriy Kiriyenko | 2011-06-07 | 1 | -0/+9 |
| | |||||
* | please use ruby -I lib:test path/to/test.rb, or export RUBY_OPT | Aaron Patterson | 2011-06-06 | 1 | -1/+1 |
| | |||||
* | Refactor Active Record test connection setup. Please see the ↵ | Jon Leighton | 2011-06-04 | 1 | -1/+1 |
| | | | | RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases. | ||||
* | Isolated PostgreSQL test into PostgreSQL folder | Prem Sichanugrist | 2011-05-31 | 1 | -20/+0 |
| | |||||
* | Reduce test noise | Jon Leighton | 2011-05-31 | 1 | -20/+14 |
| | |||||
* | supporting infinity and -infinity for timestamps in PG. fixes #544 | Aaron Patterson | 2011-05-13 | 1 | -0/+26 |
| | |||||
* | Added new #update_column method. | Sebastian Martinez | 2011-03-27 | 1 | -1/+2 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Revert "Removed #update_attribute method. New #update_column method." | Sebastian Martinez | 2011-03-27 | 1 | -4/+2 |
| | | | | | | This reverts commit 45c233ef819dc7b67e259dd73f24721fec28b8c8. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Removed #update_attribute method. New #update_column method. | Sebastian Martinez | 2011-03-26 | 1 | -2/+4 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Implement and test private method all_timestamp_attributes_in_model | Franck Verrot | 2011-02-02 | 1 | -0/+5 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Test timestamp_attributes_for_update_in_model that was already in place | Franck Verrot | 2011-02-02 | 1 | -0/+5 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Added timestamp_attributes_for_create_in_model | Franck Verrot | 2011-02-02 | 1 | -0/+5 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Test private method all_timestamp_attributes | Franck Verrot | 2011-02-02 | 1 | -0/+5 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Test private method timestamp_attributes_for_update | Franck Verrot | 2011-02-02 | 1 | -0/+5 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Test private method timestamp_attributes_for_create | Franck Verrot | 2011-02-02 | 1 | -0/+5 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | removing many unused variables | Aaron Patterson | 2010-11-16 | 1 | -1/+1 |
| | |||||
* | restore behavior of touch for models without :updated_xx [#5439 state:resolved] | tnp | 2010-09-24 | 1 | -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 Singh | 2010-08-24 | 1 | -1/+7 |
| | | | | | | [#5439 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Add test case for ActiveRecord::Base.record_timestamps = false | Wincent Colaiuta | 2010-08-24 | 1 | -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 state | Santiago Pastorino | 2010-08-16 | 1 | -1/+1 |
| | | | | [#5365] | ||||
* | added testcase for belongs_to with a counter_cache and touch | Mark Turner | 2010-08-16 | 1 | -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 Pastorino | 2010-08-14 | 1 | -14/+14 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | move reload after touch | Brian Lopez | 2010-08-02 | 1 | -1/+1 |
| | |||||
* | reload the owner model after update | Brian Lopez | 2010-08-02 | 1 | -0/+1 |
| | |||||
* | Add an internal (private API) after_touch callback. [#5271 state:resolved] | José Valim | 2010-08-02 | 1 | -4/+4 |
| | |||||
* | added failing touch propagation test | Jakub Kuźma | 2010-08-02 | 1 | -0/+17 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | with this fix touch method - does not call validations - doest not call ↵ | Neeraj Singh | 2010-07-13 | 1 | -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 methods | Neeraj Singh | 2010-05-19 | 1 | -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 Hansson | 2009-04-16 | 1 | -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 Hansson | 2009-04-16 | 1 | -0/+30 |
the current time [DHH] |