Skip to content

Commit e0b39c2

Browse files
committed
Cleaning up diff
1 parent 5a80014 commit e0b39c2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/doorkeeper/config/validations.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ def validate_custom_access_token_attributes
5656
return if custom_access_token_attributes.blank?
5757

5858
unrecognized_attributes = []
59-
custom_access_token_attributes.each do |attrib|
59+
custom_access_token_attributes.each do |attribute_name|
6060
[access_token_model, access_grant_model].each do |model|
61-
next if model.has_attribute?(attrib)
61+
next if model.has_attribute?(attribute_name)
6262

63-
unrecognized_attributes << attrib
63+
unrecognized_attributes << attribute_name
6464
::Rails.logger.warn(
65-
"[DOORKEEPER] #{access_token_model} does not respond to custom attribute '#{attrib}'. " \
65+
"[DOORKEEPER] #{access_token_model} does not respond to custom attribute '#{attribute_name}'. " \
6666
"This custom attribute will be ignored.",
6767
)
6868
end

0 commit comments

Comments
 (0)