You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my Phoenix apps I differentiate between business logic that's web-agnostic, and logic that's web-aware and that depends on web building blocks such as Plug.Conn. This is also the approach that Phoenix proposes by default when you create a new project.
In that world, it'd be very useful if PolicyWonk.Policy was web-agnostic too. According to the documentation, PolicyWonk.Enforce is the module that webifies a policy, but the PolicyWonk.Policy is already coupled to web through the function policy_error, which I'd expect to be a requirement of Policy.Enforce and not PolicyWonk.Policy. Is this a change you'd accept in the project? If so, I'd be happy to make the contribution with any necessary guidelines.
Thanks in advance :)
The text was updated successfully, but these errors were encountered:
In my Phoenix apps I differentiate between business logic that's web-agnostic, and logic that's web-aware and that depends on web building blocks such as
Plug.Conn
. This is also the approach that Phoenix proposes by default when you create a new project.In that world, it'd be very useful if
PolicyWonk.Policy
was web-agnostic too. According to the documentation,PolicyWonk.Enforce
is the module that webifies a policy, but thePolicyWonk.Policy
is already coupled to web through the function policy_error, which I'd expect to be a requirement ofPolicy.Enforce
and notPolicyWonk.Policy
. Is this a change you'd accept in the project? If so, I'd be happy to make the contribution with any necessary guidelines.Thanks in advance :)
The text was updated successfully, but these errors were encountered: