acts-as-tree-with-dotted-ids
acts-as-tree-with-dotted-ids copied to clipboard
A bug
When I run Model.rebuild_dotted_ids!, the value of the column dotted_ids is wrong! before :
id : dotted_ids
1 : null
2 : null
3 : null
4 : 1.4
5 : 2.5
after:
id : dotted_ids
1 : 1
2 : 2
3 : 3
4 : .4
5 : .5
Rebuilding of the dotted ids works fine for me in real life apps... The tests pass for both MySQL and SQLite. Are you using any other DBMS?
Can you make a failing test case?