Skip to content

Commit

Permalink
Merge pull request #1662 from ravron/ravron/validate-without-inflection
Browse files Browse the repository at this point in the history
Use validates_with rather than validates to validate URI
  • Loading branch information
nbulaj committed Jun 22, 2023
2 parents 129ba8e + 010c825 commit b3d6787
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -8,6 +8,7 @@ User-visible changes worth mentioning.
## main

- [#ID] Add your PR description here.
- [#1662] Specify uri_redirect validation class explicitly.
- [#1652] Add custom attributes support to token generator

## 5.6.6
Expand Down
2 changes: 1 addition & 1 deletion lib/doorkeeper/orm/active_record/mixins/application.rb
Expand Up @@ -22,7 +22,7 @@ module Application

validates :name, :secret, :uid, presence: true
validates :uid, uniqueness: { case_sensitive: true }
validates :redirect_uri, "doorkeeper/redirect_uri": true
validates_with Doorkeeper::RedirectUriValidator, attributes: [:redirect_uri]
validates :confidential, inclusion: { in: [true, false] }

validate :scopes_match_configured, if: :enforce_scopes?
Expand Down

0 comments on commit b3d6787

Please sign in to comment.