activeadmin-settings 0.2.2 → 0.2.3
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.
|
@@ -11,16 +11,14 @@ namespace :activeadmin do
|
|
|
11
11
|
|
|
12
12
|
desc "Add missing settings from activeadmin_settings.yml file to the db"
|
|
13
13
|
task :add_settings => :environment do
|
|
14
|
-
ActiveadminSettings.all_settings.each_key |name|
|
|
15
|
-
|
|
14
|
+
ActiveadminSettings.all_settings.each_key do |name|
|
|
15
|
+
puts "Add setting: #{name}"
|
|
16
|
+
ActiveadminSettings::Setting.find_or_create_by(name: name)
|
|
16
17
|
end
|
|
17
18
|
end
|
|
18
19
|
|
|
19
20
|
desc "Add settings from activeadmin_settings.yml file to the db"
|
|
20
21
|
task :flush_settings => :environment do
|
|
21
22
|
ActiveadminSettings::Setting.all.destroy
|
|
22
|
-
ActiveadminSettings.all_settings.each_key |name|
|
|
23
|
-
Setting.find_or_create_by(name: name)
|
|
24
|
-
end
|
|
25
23
|
end
|
|
26
24
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activeadmin-settings
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -41,9 +41,9 @@ files:
|
|
|
41
41
|
- lib/generators/activeadmin_settings/templates/models/setting.rb
|
|
42
42
|
- lib/generators/activeadmin_settings/templates/uploaders/settings_file_uploader.rb
|
|
43
43
|
- lib/tasks/activeadmin_settings.rake
|
|
44
|
-
- vendor/assets/javascripts/activeadmin_settings.js.coffee
|
|
45
44
|
- vendor/assets/javascripts/activeadmin_settings/admins.js.coffee
|
|
46
45
|
- vendor/assets/javascripts/activeadmin_settings/flashes.js.coffee
|
|
46
|
+
- vendor/assets/javascripts/activeadmin_settings/index.js.coffee
|
|
47
47
|
- vendor/assets/javascripts/activeadmin_settings/settings.js.coffee
|
|
48
48
|
- vendor/assets/javascripts/activeadmin_settings/tabs.js.coffee
|
|
49
49
|
- vendor/assets/javascripts/jquery.easytabs.js
|
|
@@ -63,7 +63,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
63
63
|
version: '0'
|
|
64
64
|
segments:
|
|
65
65
|
- 0
|
|
66
|
-
hash:
|
|
66
|
+
hash: -2330363445600812177
|
|
67
67
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
68
|
none: false
|
|
69
69
|
requirements:
|