Module: OAuth2::Provider::Models::ActiveRecord
- Defined in:
- lib/oauth2/provider/models/active_record.rb
Defined Under Namespace
Classes: AccessToken, Authorization, AuthorizationCode, Client
Class Method Summary collapse
Class Method Details
.activate(options = {}) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/oauth2/provider/models/active_record.rb', line 19 def self.activate( = {}) OAuth2::Provider.client_class_name ||= "OAuth2::Provider::Models::ActiveRecord::Client" OAuth2::Provider.access_token_class_name ||= "OAuth2::Provider::Models::ActiveRecord::AccessToken" OAuth2::Provider. ||= "OAuth2::Provider::Models::ActiveRecord::AuthorizationCode" OAuth2::Provider. ||= "OAuth2::Provider::Models::ActiveRecord::Authorization" OAuth2::Provider.client_class.set_table_name client_table_name OAuth2::Provider.access_token_class.set_table_name access_token_table_name OAuth2::Provider..set_table_name OAuth2::Provider..set_table_name end |