rails_admin_settings 0.7.3 → 0.7.4
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: 015b9c7212b0472dd83706edcd790c417057b357
|
4
|
+
data.tar.gz: 7c73ecbac3122835384cb56e4d39c697a6a676be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a599a697d23e2e6be8203ba321733b1f5dec8938ffd39cd2664b7c547011118376376e66d543c876cb99432d9da4fd45c7f7de0ee120b73574fe5daf9aef1d67
|
7
|
+
data.tar.gz: c34095c9e25a40a7773b0330673cf6ef0418833ec4dbf88614801e2f6232dd650d65cd8daf5c389eff6ec6b975201f8cf0367a11d9fe04afd4f32ceaf7541b5c
|
@@ -10,8 +10,6 @@ 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"))
|
14
|
-
Settings.apply_defaults!(Rails.root.join('config/settings.yml'))
|
15
13
|
end
|
16
14
|
end
|
17
15
|
end
|
@@ -21,6 +21,12 @@ namespace :settings do
|
|
21
21
|
RailsAdminSettings::Dumper.dump(path)
|
22
22
|
puts "dumped settings to #{path}"
|
23
23
|
end
|
24
|
+
|
25
|
+
desc "Load settings from config/settings.yml without overwriting current values"
|
26
|
+
task :load => ['settings:require'] do
|
27
|
+
Settings.apply_defaults!(Rails.root.join("config/settings.#{Rails.env.to_s}.yml"))
|
28
|
+
Settings.apply_defaults!(Rails.root.join('config/settings.yml'))
|
29
|
+
end
|
24
30
|
|
25
31
|
desc "Delete all settings"
|
26
32
|
task :delete => ['settings:require'] do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_admin_settings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gleb Tv
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongoid
|