stffn/declarative_authorization

Use with ActionController::Metal

maletor opened this issue · 2 comments

Would be nice if you could just drop in

include Authorization::AuthorizationInController
include ActionController::HideActions

to get declarative_authorization rolling with ActionController::Metal. Unfortunately, the use of logger and not Rails.logger prevents this and one has to override.

def logger
  Rails.logger

So you argue to have this included generally? Can you provide a pull request?

Yes.