Skip to content

Commit 875b035

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents acc8b5d + 1296d7d commit 875b035

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rack/oauth2/access_token.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ class AccessToken
1010
alias_method :to_s, :access_token
1111

1212
def initialize(attributes = {})
13-
(required_attributes + optional_attributes).each do |key|
14-
self.send :"#{key}=", attributes[key]
13+
attributes.each do |key, value|
14+
self.send :"#{key}=", value
1515
end
1616
@raw_attributes = attributes
1717
@token_type = self.class.name.demodulize.underscore.to_sym

0 commit comments

Comments
 (0)