rails_onboarding 0.8.2 → 0.8.3
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 98452f929df5910d698c5309c4bb1b1c2e5e9d4e3322f41ec4a4407b14bea0b4
|
|
4
|
+
data.tar.gz: ea59a57c10f7fa497a4c1cfce14ff3b9f828e0b645fc1e652c08087e8c07ff09
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f26e666c6aca70b79c69aa9b1d25e83ffb2be711bf9249bb1061ca9f76d57c7c7526f1a6d8ac0a8a25e9ae4135cc35ffe01956b65cd6b5931e00540f4676d43b
|
|
7
|
+
data.tar.gz: eeae8264bc96aa699ba8b86a9d29c15ae5ebe2355475c74df0b1b877eb8217c137688dee247e4445956a1a13135deb02f7f7592a5f6c1e738b7868012e351aa3
|
|
@@ -112,7 +112,15 @@ module RailsOnboarding
|
|
|
112
112
|
private
|
|
113
113
|
|
|
114
114
|
def authenticate_user!
|
|
115
|
-
|
|
115
|
+
# respond_to? omits private methods, and a host app that hand-rolls
|
|
116
|
+
# authentication commonly keeps current_user private - a public method on
|
|
117
|
+
# a controller can be reached as an action. Without the second argument
|
|
118
|
+
# this guard is false for every such host and the page is unreachable no
|
|
119
|
+
# matter who is signed in. (Gift Posse is exactly that shape.) The helper
|
|
120
|
+
# and layout uses of respond_to?(:current_user) elsewhere are fine as they
|
|
121
|
+
# stand: they run in view context, where helper_method has already defined
|
|
122
|
+
# a public current_user.
|
|
123
|
+
unless respond_to?(:current_user, true) && current_user
|
|
116
124
|
redirect_to main_app.root_path, alert: "Please log in to view milestones"
|
|
117
125
|
end
|
|
118
126
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_onboarding
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Lewis
|
|
@@ -282,7 +282,7 @@ licenses:
|
|
|
282
282
|
metadata:
|
|
283
283
|
allowed_push_host: https://rubygems.org
|
|
284
284
|
homepage_uri: https://github.com/bunnahabhain/rails_onboarding
|
|
285
|
-
source_code_uri: https://github.com/bunnahabhain/rails_onboarding/tree/v0.8.
|
|
285
|
+
source_code_uri: https://github.com/bunnahabhain/rails_onboarding/tree/v0.8.3
|
|
286
286
|
changelog_uri: https://github.com/bunnahabhain/rails_onboarding/blob/master/docs/CHANGELOG.md
|
|
287
287
|
rdoc_options: []
|
|
288
288
|
require_paths:
|