schrockwell/bodyguard

Add plug for setting default options

schrockwell opened this issue · 1 comments

Something like:

plug :bodyguard_options, policy: MyOtherPolicy

def index(conn, params) do
  authorize!(conn, action: :foo) # => opts is [policy: MyOtherPolicy, action: :foo]
end

Done, just needs a mention in the readme