We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents acc8b5d + 1296d7d commit 875b035Copy full SHA for 875b035
lib/rack/oauth2/access_token.rb
@@ -10,8 +10,8 @@ class AccessToken
10
alias_method :to_s, :access_token
11
12
def initialize(attributes = {})
13
- (required_attributes + optional_attributes).each do |key|
14
- self.send :"#{key}=", attributes[key]
+ attributes.each do |key, value|
+ self.send :"#{key}=", value
15
end
16
@raw_attributes = attributes
17
@token_type = self.class.name.demodulize.underscore.to_sym
0 commit comments