ThingWithCodes is already included by Entry. Including it again causes an error with mongoid4 because the field codes is being redeclared. Removing the duplicate include stops the error and does not seem to cause any additional issues.
Merge pull request #137 from rbclark/duplicate_include

ThingWithCodes is already included by Entry.