radiant-children_config-extension 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -52,7 +52,12 @@ module ChildrenConfig::PageExtensions
|
|
52
52
|
page.parts.build(part)
|
53
53
|
end
|
54
54
|
else
|
55
|
-
|
55
|
+
config = Radiant::Config
|
56
|
+
default_parts = config['defaults.page.parts'].to_s.strip.split(/\s*,\s*/)
|
57
|
+
default_parts.map do |name|
|
58
|
+
page.parts << PagePart.new(:name => name, :filter_id => config['defaults.page.filter'])
|
59
|
+
end
|
60
|
+
|
56
61
|
end
|
57
62
|
raise page.errors.full_messages.join ", " unless page.valid?
|
58
63
|
page.save
|
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-children_config-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 2
|
10
|
+
version: 1.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Your Name
|
@@ -42,6 +42,7 @@ files:
|
|
42
42
|
- lib/radiant-children_config-extension.rb
|
43
43
|
- lib/tasks/children_config_extension_tasks.rake
|
44
44
|
- radiant-children_config-extension-1.0.0.gem
|
45
|
+
- radiant-children_config-extension-1.0.1.gem
|
45
46
|
- radiant-children_config-extension.gemspec
|
46
47
|
- Rakefile
|
47
48
|
- README.md
|
@@ -52,7 +53,7 @@ files:
|
|
52
53
|
homepage: http://yourwebsite.com/children_config
|
53
54
|
licenses: []
|
54
55
|
|
55
|
-
post_install_message: "\n Add this to your radiant project with:\n config.gem 'radiant-children_config-extension', :version => '~>1.0.
|
56
|
+
post_install_message: "\n Add this to your radiant project with:\n config.gem 'radiant-children_config-extension', :version => '~>1.0.2'\n "
|
56
57
|
rdoc_options: []
|
57
58
|
|
58
59
|
require_paths:
|