assaf/rack-oauth2-server — pull request #9 by rafael (2012-02-10 16:19:27+00:00)
Title: Add functionality to allow users to specify a prefix for mongo collections

This is a small functionality that allows to set a prefix for every mongo collection created by server models.

In your initializer you will use it in the following way:

config.after_initialize do
....
config.oauth.collection_prefix = 'oauth_col_pre'
...
end

For the oauth2-server binary you could pass --collection-prefix or -c.

If you don't set the parameter the prefix use it by default is oauth2.