Skip to content

Commit

Permalink
Merge pull request #1175 from ghiculescu/patch-1
Browse files Browse the repository at this point in the history
Use scopes_string internally
  • Loading branch information
nbulaj committed Dec 25, 2018
2 parents 57092f7 + f23fa4b commit 7d825c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ User-visible changes worth mentioning.

- [#1162] Fix `enforce_content_type` for requests without body.
- [#1164] Fix error when `root_path` is not defined.
- [#1175] Internal refactor: use `scopes_string` inside `scopes`.

## 5.0.2

Expand Down
2 changes: 1 addition & 1 deletion lib/doorkeeper/models/concerns/scopes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Doorkeeper
module Models
module Scopes
def scopes
OAuth::Scopes.from_string(self[:scopes])
OAuth::Scopes.from_string(scopes_string)
end

def scopes_string
Expand Down

0 comments on commit 7d825c3

Please sign in to comment.