mongoid / mongoid-history

Multi-user non-linear history tracking, auditing, undo, redo for mongoid.
https://rubygems.org/gems/mongoid-history
MIT License
393 stars 129 forks source link

Default hash fields to an empty hash #166

Closed johnnyshields closed 8 years ago

johnnyshields commented 8 years ago

This is useful when you create a tracker class instance manually. Otherwise, you can get nil-errors when certain methods are called on the instance.

coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.1%) to 99.732% when pulling a40c722b9b173800afb2ad2e11958df5d8d0fbc0 on johnnyshields-patch-1 into 136947c42e0d1984aabfd74105cfbc0e3ae83b66 on master.

johnnyshields commented 8 years ago

@dblock please merge

dblock commented 8 years ago

This is a behavior change. I think it's OK to commit this, but it should have tests and CHANGELOG please.

coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.1%) to 99.733% when pulling 606afab51b3f38eaf008d75f1c97ae695a1e6e2a on johnnyshields-patch-1 into 136947c42e0d1984aabfd74105cfbc0e3ae83b66 on master.

coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.1%) to 99.733% when pulling 606afab51b3f38eaf008d75f1c97ae695a1e6e2a on johnnyshields-patch-1 into 136947c42e0d1984aabfd74105cfbc0e3ae83b66 on master.

johnnyshields commented 8 years ago

@dblock ready to go.

coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.1%) to 99.738% when pulling a6252270bc11b9d3711c40b9aaf1f113acfcb607 on johnnyshields-patch-1 into 9935819fe604ee4b49702510ccf8ef0c40cd43b6 on master.

dblock commented 8 years ago

Merged, thanks.