Skip to content

Commit

Permalink
Cleaning up diff
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyC-za committed Mar 24, 2023
1 parent 5a80014 commit e0b39c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/doorkeeper/config/validations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ def validate_custom_access_token_attributes
return if custom_access_token_attributes.blank?

unrecognized_attributes = []
custom_access_token_attributes.each do |attrib|
custom_access_token_attributes.each do |attribute_name|
[access_token_model, access_grant_model].each do |model|
next if model.has_attribute?(attrib)
next if model.has_attribute?(attribute_name)

unrecognized_attributes << attrib
unrecognized_attributes << attribute_name
::Rails.logger.warn(
"[DOORKEEPER] #{access_token_model} does not respond to custom attribute '#{attrib}'. " \
"[DOORKEEPER] #{access_token_model} does not respond to custom attribute '#{attribute_name}'. " \
"This custom attribute will be ignored.",
)
end
Expand Down

0 comments on commit e0b39c2

Please sign in to comment.