Menu

Commit [r2950]  Maximize  Restore  History

When a specific TimeEntryActivity are change, associated TimeEntries will be

re-assigned to the correct record.

* Renamed build to create since the methods now create objects.
* Removed call to Project#save that isn't needed since objects are saved directly now.
* Wrapped the activity creation and updates in a SQL transaction so TimeEntries
will remain in a consistent state if there is an error.
* When a Project's TimeEntryActivities are destroyed, they are now
reassigned to the parent TimeEntryActivity.

#4077

edavis10 2009-10-21

changed /trunk/app/controllers/projects_controller.rb
changed /trunk/app/models/project.rb
changed /trunk/test/fixtures/time_entries.yml
changed /trunk/test/functional/projects_controller_test.rb
/trunk/app/controllers/projects_controller.rb Diff Switch to side-by-side view
Loading...
/trunk/app/models/project.rb Diff Switch to side-by-side view
Loading...
/trunk/test/fixtures/time_entries.yml Diff Switch to side-by-side view
Loading...
/trunk/test/functional/projects_controller_test.rb Diff Switch to side-by-side view
Loading...