smpallen99 / whatwasit

Track changes to your Ecto models
MIT License
63 stars 8 forks source link

Support a user model that is not an Ecto model #2

Closed smpallen99 closed 8 years ago

smpallen99 commented 8 years ago

For a project that uses an LDAP user model, we should be able to support this. The LDAP id is a big int.

To support this, we can provide an install option to define the type type of the whodoneit field. As well, we can provide an option to set :name_field config item to a {Module, Fun} value. When set to a tuple, the function will be called to get the whodoneit_name value.