Module: OAuth2::Provider::Models::AuthorizationCode

Extended by:
ActiveSupport::Concern
Defined in:
lib/oauth2/provider/models/authorization_code.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#initialize(*args) ⇒ Object



12
13
14
15
# File 'lib/oauth2/provider/models/authorization_code.rb', line 12

def initialize(*args)
  super
  self.code ||= self.class.unique_random_token(:code)
end