before killing observer
to here create audits was fine but update audits does not work
begin to construct label object. to here, label object skeleton created
to here schema updated for labels
audit association made
first try of routes for labels, guess that only create and update are needed
added rake routes, now beginning to put in connections from audit to label
got rid of audit observer in both lib and config files
this is after installing zeus and guard, and getting them to run successfully. i also wrote controller for label and spec but the redirections didn't work. i will now try to move to an observer pattern.
observer added and tweaked. it works. buildings instantly add labels, including in express. fixed bug with label calculator that gave the wrong answer when there were two calls in a row. there's a weirdness that the business.label.label_as_string does not update right away on the console. i think it's because after save is building a new label every time, instead of checking if there's a label already and updating it. will try adding some logic to that end tomorrow and see if that fixes it.
deleted label_controller_spec because there is no longer a label controller
modified audit observer to check if there is an existing label. developed with tests and tests pass. now cucumber steps need to be rewritten based on the new schema - many cucumber tests are failing
cucumber features now pass. fixed test definitions
wrote migration to remove label columns from audit. applied migration. cleaned up test database from polluted entries
to here code worked fine. past here migration to add audit save to trigger labels for everything will be applied. gl
this is a backup of the database as it stood before running the audit save migration
added migration to add defaults to label
added an instance method to rescue in case business.label.label_as_string fails
Merge branch 'staging'