trenpixster / addict

User management lib for Phoenix Framework
MIT License
645 stars 99 forks source link

support tuple hooks #102

Closed qhwa closed 8 years ago

qhwa commented 8 years ago

Hi, there is a problem when deploying with Edeliver as hooks are defined in raw Elixir functions causing a syntax error in generated sys.confg.

After some digging, I find hooks defined as tuples in example app. Unfortunately this is not working in real code.

I made a wrapper to make it work. Please have a look if this helps? Thanks.

trenpixster commented 8 years ago

Thanks for this @qhwa! 👍