Skip to content

Commit 44db095

Browse files
committed
📝 Improve documentation
1 parent a320b38 commit 44db095

File tree

6 files changed

+22
-3
lines changed

6 files changed

+22
-3
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ This gem is compatible with, as of Feb 2021, version 3:
2121

2222
* Latest released version of omniauth, v2.0.2
2323
* Ruby 2.4, 2.5, 2.6, 2.7, 3.0, ruby-head
24+
* At least 5 different database ORM adapters, which connect to 15 different database clients!
25+
26+
| Databases | Adapter Libraries |
27+
|--------- | -------- |
28+
| MySQL, PostgreSQL, SQLite3 | [ActiveRecord](https://guides.rubyonrails.org/active_record_basics.html) |
29+
| CouchDB | [CouchPotato](https://github.com/langalex/couch_potato) |
30+
| MongoDB | [Mongoid](https://github.com/mongodb/mongoid) |
31+
| RethinkDB | [NoBrainer](http://nobrainer.io/) |
32+
| ADO, Amalgalite, IBM_DB, JDBC, MySQL, Mysql2, ODBC, Oracle, PostgreSQL, SQLAnywhere, SQLite3, and TinyTDS | [Sequel](http://sequel.jeremyevans.net) |
2433

2534
## Installation
2635

lib/omniauth/identity/models/active_record.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
module OmniAuth
66
module Identity
77
module Models
8+
# ActiveRecord is an ORM for MySQL, PostgreSQL, and SQLite3:
9+
# https://guides.rubyonrails.org/active_record_basics.html
10+
# NOTE: ActiveRecord is based on ActiveModel.
811
class ActiveRecord < ::ActiveRecord::Base
912
include ::OmniAuth::Identity::Model
1013
include ::OmniAuth::Identity::SecurePassword

lib/omniauth/identity/models/couch_potato.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
module OmniAuth
66
module Identity
77
module Models
8-
# can not be named CouchPotato since there is a class with that name
8+
# CouchPotato is an ORM adapter for CouchDB:
9+
# https://github.com/langalex/couch_potato
910
# NOTE: CouchPotato is based on ActiveModel.
1011
# NOTE: CouchPotato::Persistence must be included before OmniAuth::Identity::Models::CouchPotatoModule
12+
# NOTE: Includes "Module" in the name for invalid legacy reasons. Rename only with a major version bump.
1113
module CouchPotatoModule
1214
def self.included(base)
1315
base.class_eval do

lib/omniauth/identity/models/mongoid.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
module OmniAuth
66
module Identity
77
module Models
8+
# Mongoid is an ORM adapter for MongoDB:
9+
# https://github.com/mongodb/mongoid
810
# NOTE: Mongoid is based on ActiveModel.
911
module Mongoid
1012
def self.included(base)

lib/omniauth/identity/models/nobrainer.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
module OmniAuth
66
module Identity
77
module Models
8-
# http://nobrainer.io/ an ORM for RethinkDB
8+
# NoBrainer is an ORM adapter for RethinkDB:
9+
# http://nobrainer.io/
910
# NOTE: NoBrainer is based on ActiveModel.
1011
module NoBrainer
1112
def self.included(base)

lib/omniauth/identity/models/sequel.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
module OmniAuth
66
module Identity
77
module Models
8-
# http://sequel.jeremyevans.net/ an SQL ORM
8+
# Sequel is an ORM adapter for the following databases:
9+
# ADO, Amalgalite, IBM_DB, JDBC, MySQL, Mysql2, ODBC, Oracle, PostgreSQL, SQLAnywhere, SQLite3, and TinyTDS
10+
# The homepage is: http://sequel.jeremyevans.net/
911
# NOTE: Sequel is *not* based on ActiveModel, but supports the API we need, except for `persisted?`:
1012
# * create
1113
# * save

0 commit comments

Comments
 (0)