search for: logger_debug

Displaying 1 result from an estimated 1 matches for "logger_debug".

2006 Jul 21
2
Tableless ActiveRecord attribute and my aching head
...... def change_turn if turn==0 turn = 1 else turn = 0 end end end -------------------------------- ok.... now the head-banger. Any time I called the ''change_turn'' method inside my new class, the turn wouldn''t actually be changed. Oh, I would put logger_debug statements inside the change_turn method itself and the value WAS being changed, but the changes weren''t visible OUTSIDE the class. Er? It wasn''t until I changed the ''change_turn'' method to look like this that it started working properly: def change_turn...