rails_admin_settings 0.6.5 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8dd5f420a09fedef93f144d32594f4ed3cc17ce5
|
4
|
+
data.tar.gz: 9891bdfd3b652b49a70af050e011eb1e1024896c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79f77c416cdc0a487dec52daa92559404b06427ba74394247e0484955da13240cca749cdeefac5e7807d1a4ca4461751248a9ab95991089633ac4f7f2dab696b
|
7
|
+
data.tar.gz: 40e9e21eca9fb161bbff58e628d91e1e527d728bef2b3d0c07314348d1dbf7f4572d6b464aa2796e016609e1afbf892ea13646979dbfaa5ed905d46ffe66128e
|
@@ -10,6 +10,7 @@ module RailsAdminSettings
|
|
10
10
|
end
|
11
11
|
|
12
12
|
RailsAdminSettings::Setting.where(:ns.exists => false).update_all(ns: 'main')
|
13
|
+
Settings.apply_defaults!(Rails.root.join("config/settings.#{Rails.env.to_s}.yml"))
|
13
14
|
Settings.apply_defaults!(Rails.root.join('config/settings.yml'))
|
14
15
|
end
|
15
16
|
end
|
@@ -12,8 +12,12 @@ namespace :settings do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
desc "Dump settings to config/settings.yml"
|
15
|
-
task :dump => ['settings:require'] do
|
16
|
-
|
15
|
+
task :dump, [:as_env] => ['settings:require'] do |t, args|
|
16
|
+
if args.empty?
|
17
|
+
path = Settings.root_file_path.join('config/settings.yml')
|
18
|
+
else
|
19
|
+
path = Settings.root_file_path.join("config/settings.#{args[:as_env]}.yml")
|
20
|
+
end
|
17
21
|
RailsAdminSettings::Dumper.dump(path)
|
18
22
|
puts "dumped settings to #{path}"
|
19
23
|
end
|