capcoauth 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/capcoauth/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9a84d574dab09d66611c3a8d525d0480cb5aeabf
|
|
4
|
+
data.tar.gz: aab1b067b415ffad7199f4a3174e84e7c2fec81f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aa9cf3ee808b75df538536d81040544faa5251d6450fcd1c95416d8d731276361fa9b10fa73448562da5df13e4b6caeecb1d1ef51dc0da00c3661cd18c7195da
|
|
7
|
+
data.tar.gz: e220ad1bbefff4ba8f399b75c1acb6a6045fedce7eb46d5f575049a17bc5118dab6a2836b6ac11fbd823dc17733270b3b731536f10987ffa1eb24242556a319c
|
data/README.md
CHANGED
|
@@ -38,7 +38,7 @@ by adding it as a before_action:
|
|
|
38
38
|
|
|
39
39
|
```ruby
|
|
40
40
|
class ApplicationController < ActionController::Base
|
|
41
|
-
before_action :verify_authorized
|
|
41
|
+
before_action :verify_authorized!
|
|
42
42
|
end
|
|
43
43
|
```
|
|
44
44
|
|
|
@@ -46,7 +46,7 @@ You may exclude/include for specific actions:
|
|
|
46
46
|
|
|
47
47
|
```ruby
|
|
48
48
|
class ApplicationController < ActionController::Base
|
|
49
|
-
before_action :verify_authorized
|
|
49
|
+
before_action :verify_authorized!, only: [:my_super_secret_action], except: [:my_publicly_accessible_action]
|
|
50
50
|
end
|
|
51
51
|
```
|
|
52
52
|
|
|
@@ -54,7 +54,7 @@ Or even skip it entirely for specific actions:
|
|
|
54
54
|
|
|
55
55
|
```ruby
|
|
56
56
|
class PublicStuffController < ApplicationController
|
|
57
|
-
skip_before_action :verify_authorized
|
|
57
|
+
skip_before_action :verify_authorized!
|
|
58
58
|
end
|
|
59
59
|
```
|
|
60
60
|
|
data/lib/capcoauth/version.rb
CHANGED