Skip to content

Instantly share code, notes, and snippets.

@eqdw
Created December 12, 2010 16:53
Show Gist options
  • Save eqdw/738171 to your computer and use it in GitHub Desktop.
Save eqdw/738171 to your computer and use it in GitHub Desktop.
"#{attr} updated to #{changes} on register #{self.id} at #{Time.now}" generates the
following for the activities embedded document:
##########################################################################################
MESSAGE: _index updated to Temporary name
Contaminated Sites
New contamination
PCB Management
Shipment and Disposal of PCBs
Used Oil Management
Use of Used Oils
General Waste Management and StewardshipTemporary name
THIS IS A TEST OF THE CHANGELOG UPDATE TRACKER
Contaminated Sites
New contamination
PCB Management
Shipment and Disposal of PCBs
Used Oil Management
Use of Used Oils
General Waste Management and Stewardship on register 4d04fb65e97a0f1488000003 at Sun Dec 12 10:46:10 -0600 2010
################################################################################
Note that almost all of that is in the "changes". Ie it's just logged the entire
text representation of the new activities document.
I think I'm going to have to change this in order for it to be practical. What seems
to be happening is that register is being updated with a new activities collection,
so it echoes the entire collection to the logs. I guess this means it's doign stuff
as expected, but we're gonna have to change this. Probably just slap logging on the
activities model directly. I'll look at more tomorrow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment