early_bird 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -2
- data/app/controllers/early_bird/application_controller.rb +1 -0
- data/lib/early_bird/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68ebd78a76a935c5f2044e05b0f793ec08541ea615f02b0f159d8a25a340ccf9
|
4
|
+
data.tar.gz: 7bfe75352d5e53b1ae722df0eee40b690bcef95a920dbdf69be8f9c53927bbf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 186ad4bd6ca357cc972ea61bbdf80d5c03ced9f4fa4d2b1519a43039e7915223585b510d4b01dbc135b4999e7cfcc0a2f972429c22306a504659f77d806c0d11
|
7
|
+
data.tar.gz: b75fa440bd0c21ba19fe36b580b167cf7a527e47b4623dc70a9ec615916ea51a878ee94c6dbe650e39c782d02fc4fe17e719bb331d22ab68024a93e1419ddfd0
|
data/README.md
CHANGED
@@ -54,10 +54,16 @@ Then mount the engine in your routes.rb file:
|
|
54
54
|
mount EarlyBird::Engine => "/"
|
55
55
|
```
|
56
56
|
|
57
|
-
|
57
|
+
In your application_controller.rb file, define an `authenticate_user!` method, which EarlyBird skips (to allow access to the waitlist while preventing access to the rest of the app):
|
58
58
|
```ruby
|
59
59
|
class ApplicationController < ActionController::Base
|
60
|
-
|
60
|
+
before_action :authenticate_user!
|
61
|
+
|
62
|
+
private
|
63
|
+
|
64
|
+
def authenticate_user!
|
65
|
+
http_basic_authenticate_with name: "dev", password: "secret"
|
66
|
+
end
|
61
67
|
end
|
62
68
|
```
|
63
69
|
|
data/lib/early_bird/version.rb
CHANGED