Add plug for setting default options
schrockwell opened this issue · 1 comments
schrockwell commented
Something like:
plug :bodyguard_options, policy: MyOtherPolicy
def index(conn, params) do
authorize!(conn, action: :foo) # => opts is [policy: MyOtherPolicy, action: :foo]
end
schrockwell commented
Done, just needs a mention in the readme