web47core 0.7.4 → 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/app/models/concerns/core_system_configuration.rb +1 -14
- data/lib/web47core/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: e8fbdc0d487e8fbc4f4b49b74603fb12b694a77267caa16e9c36d1f589418e28
|
4
|
+
data.tar.gz: 3587a074347a1807a3eb139aeb904eeb77394bfc76e754994b312736e8acc348
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a324d1aa8cfacc3116268b1f173bd6b396f60b33c5c7e5efeefae85dd668786e603e44edd0c51b9fc299efafa5fe1d0d1cbc4b4d84a1bd1b9fe5c364537fc0f
|
7
|
+
data.tar.gz: 4139018431239a2edecbdcdb40109951636a6409c367fa4b7f9dea9aae1032ce0b7d01ec2ac348816fcd6e4bfff194491c9cc444f10e486f5ca5cd254a784c99
|
@@ -75,11 +75,7 @@ module CoreSystemConfiguration
|
|
75
75
|
|
76
76
|
module ClassMethods
|
77
77
|
def configuration
|
78
|
-
|
79
|
-
end
|
80
|
-
|
81
|
-
def reset
|
82
|
-
@configuration = nil
|
78
|
+
SystemConfiguration.find_or_create_by!(environment: Rails.env)
|
83
79
|
end
|
84
80
|
|
85
81
|
def smtp_configuration
|
@@ -249,13 +245,4 @@ module CoreSystemConfiguration
|
|
249
245
|
def slack_configured?
|
250
246
|
slack_api_url.present?
|
251
247
|
end
|
252
|
-
|
253
|
-
# private
|
254
|
-
|
255
|
-
#
|
256
|
-
# Clear the cache when the object is saved
|
257
|
-
#
|
258
|
-
def clear_cache
|
259
|
-
SystemConfiguration.reset
|
260
|
-
end
|
261
248
|
end
|
data/lib/web47core/version.rb
CHANGED