songkick/oauth2-provider — pull request #12 by jjb (2011-11-12 23:37:50+00:00)
Title: Fix authorization mass assignment

In my app I have accessible attributes set to empty globally, which forces each model to define its own whitelist.

ActiveRecord::Base.send(:attr_accessible, nil)

This is a pretty common practice AFAIK. Because of this, creating a new `OAuth2::Model::Authorization` in `OAuth2::Model::Authorization.for_response_type` was failing for me.

This patch accommodates such environments.