search for: current_set

Displaying 2 results from an estimated 2 matches for "current_set".

Did you mean: current_seq
2007 Jan 29
0
Rails 1.2.1 reload of active record changed?
Hi All, I have a following test case: def test_update_settings assert @unit.setting!=nil assert_equal @unit.setting,@current_setting @unit.setting.mode = true assert @unit.save @unit.reload assert @unit.setting.mode end Which worked (and still works on 1.1.6) pretty well before the upgrade to 1.2.1 and now the last assertion fails. Any ideas? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~...
2007 Jan 30
2
save does not cascade in 1.2.1?
Hi All, I have the following test case which worked just fine before I upgraded to rails 1.2.1: def test_update_settings assert @unit.setting!=nil # loaded via fixtures assert_equal @unit.setting,@current_setting # also loaded via fixtures @unit.setting.mode = true assert @unit.save @unit.reload assert @unit.setting.mode end where @unit is declared with ''has_one :setting'' setting and setting is declared as ''belongs_to: unit'' After I upgraded to...