redcord 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redcord/railtie.rb +10 -3
- 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: 243af4e2e05e9b611adabe523330b170d853434920ca81530e081d63790c871a
|
4
|
+
data.tar.gz: 24baac2c7c4eb7d2d6f0dc9a90988b77461d95b683e01cc18892ba1a5894f6a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3b81515ee166f4c57bc2c2a1f4abb9b11d5e32aa349b5ec748503e4b689edfaf64b2caa4e23e3ce8ce3a0c0b628929fa6a848f445fc0eed9990b0a43d1e12a1
|
7
|
+
data.tar.gz: c6a6fd2af78a0d53fdf5aa26b3673d3c2bdbac716fa8dfefb6b14b8793512daf5764857b5033573078ccdb66cb0e2a13fd2e1040dc201978073f972880b667b4
|
data/lib/redcord/railtie.rb
CHANGED
@@ -24,9 +24,16 @@ class Redcord::Railtie < Rails::Railtie
|
|
24
24
|
config_file = 'config/redcord.yml'
|
25
25
|
|
26
26
|
if File.file?(config_file)
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.1.0')
|
28
|
+
Redcord::Base.configurations = YAML.load(
|
29
|
+
ERB.new(File.read(config_file)).result,
|
30
|
+
)
|
31
|
+
else
|
32
|
+
Redcord::Base.configurations = YAML.load(
|
33
|
+
ERB.new(File.read(config_file)).result,
|
34
|
+
aliases: true,
|
35
|
+
)
|
36
|
+
end
|
30
37
|
end
|
31
38
|
|
32
39
|
Redcord._after_initialize!
|