applicake/doorkeeper — pull request #85 by felipeelias (2012-05-02 21:08:53+00:00)
Title: Translations for scopes

Basically, with this pull request, you'll now be able to use translations for provider's scopes. Instead of defining them in the configuration block, you'll now have to define them in your locale file:

```yaml
en:
doorkeeper:
scopes:
public: "Access your public data"
write: "Update your data"
```

The configuration also changed, instead of using a block for `authorization_scopes`, now you'll have to define scopes like this:

```ruby
Doorkeeper.configure do
default_scopes :public
optional_scopes :write, :update
end
```

This pull request also introduces a new `Scopes` class which now will be the default way to handle scopes through the code. The scopes in configuration are now split into `default_scopes`, `optional_scope` and `scopes` which has both merged.