Skip to content

Commit 5afe8ae

Browse files
Merge pull request #92 from Anthonyntilelli/patch-1
update readme for rails usage
2 parents 4547b90 + 267f54b commit 5afe8ae

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ use OmniAuth::Builder do
2020
end
2121
```
2222

23+
24+
## Basic Usage Rails
25+
26+
In `config/initializers/github.rb`
27+
28+
```ruby
29+
Rails.application.config.middleware.use OmniAuth::Builder do
30+
provider :github, ENV['GITHUB_KEY'], ENV['GITHUB_SECRET']
31+
end
32+
```
33+
34+
2335
## Github Enterprise Usage
2436

2537
```ruby

0 commit comments

Comments
 (0)