rails-image-post-solution 0.1.14 → 0.1.15
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: 8af526e158a676bd8774a92896fc6fcb90e07358a83f17634fdf9ec277f2f875
|
|
4
|
+
data.tar.gz: 1bb02b2de8078d9178240a6a2d67acef480b78212d94419cdaa97fbefb265ec9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fc07b765e0f7fd90cc783d9d8b5ce9505db8b574ea077d6b641ff31c4b1c45d07a2dbe7bb182b84bf2b649b9ebfec14d05a094496765a4c0438a9fbb0642a3dc
|
|
7
|
+
data.tar.gz: 96680a6f9957c9421b2f54e107019094822ad619211782fea7a3828b7a26405efba1bbf20744c06a34403fb7645bc477c1c9dc0c93e32d0415b7b2b79849fffd
|
|
@@ -71,17 +71,5 @@ module RailsImagePostSolution
|
|
|
71
71
|
end
|
|
72
72
|
end
|
|
73
73
|
end
|
|
74
|
-
|
|
75
|
-
def require_login
|
|
76
|
-
# Call authentication method implemented in host application
|
|
77
|
-
return if respond_to?(:current_user) && current_user
|
|
78
|
-
|
|
79
|
-
respond_to do |format|
|
|
80
|
-
format.json do
|
|
81
|
-
render json: { error: I18n.t("rails_image_post_solution.flash.login_required") }, status: :unauthorized
|
|
82
|
-
end
|
|
83
|
-
format.html { redirect_to main_app.root_path, alert: I18n.t("rails_image_post_solution.flash.login_required") }
|
|
84
|
-
end
|
|
85
|
-
end
|
|
86
74
|
end
|
|
87
75
|
end
|