trenpixster / addict

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

Configuration won't work with exrm releases #77

Closed smpallen99 closed 8 years ago

smpallen99 commented 8 years ago

Your documentation says to put this in your configuration file:

post_login: &MyApp.PostLoginAction.log/3

This type of configuration won't work with exrm releases. You should change your implementation to use the following format:

post_login: {MyApp.PostLoginAction, :log}

and use the following to run the callback:

{mod, fun} = Application.get_env :addict, :post_login
apply mod, fun, [arg1, arg2, arg3]

I've been burned with this probably a few times....

trenpixster commented 8 years ago

Ohhh, that explains it! Thanks @smpallen99! 👍