radiant-children_config-extension 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,12 +43,14 @@ module ChildrenConfig::PageExtensions
43
43
  options = {}
44
44
  options[:parent_id] = self.id
45
45
  options[:status_id] = Status[child['status'].downcase.to_sym].id
46
+ options[:class_name] = child['class_name']
46
47
  page = Page.new(options)
47
48
  page.breadcrumb = page.title = child['title']
48
49
  page.slug = child['title'].slugify
49
50
  if child.has_key? "parts"
50
51
  child["parts"].each do |part|
51
52
  part["page_part_type"] = part["page_part_type"].to_s.camelize
53
+ part["filter_id"] = ["SmartyPants", "Markdown", "Textile", "WymEditor", "CKEditor"].include?(part["filter"]) ? "#{default_filter}" : ""
52
54
  page.parts.build(part)
53
55
  end
54
56
  else
@@ -1,3 +1,3 @@
1
1
  module RadiantChildrenConfigExtension
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Your Name
@@ -43,6 +43,7 @@ files:
43
43
  - lib/tasks/children_config_extension_tasks.rake
44
44
  - radiant-children_config-extension-1.0.0.gem
45
45
  - radiant-children_config-extension-1.0.1.gem
46
+ - radiant-children_config-extension-1.0.2.gem
46
47
  - radiant-children_config-extension.gemspec
47
48
  - Rakefile
48
49
  - README.md
@@ -53,7 +54,7 @@ files:
53
54
  homepage: http://yourwebsite.com/children_config
54
55
  licenses: []
55
56
 
56
- post_install_message: "\n Add this to your radiant project with:\n config.gem 'radiant-children_config-extension', :version => '~>1.0.2'\n "
57
+ post_install_message: "\n Add this to your radiant project with:\n config.gem 'radiant-children_config-extension', :version => '~>1.0.3'\n "
57
58
  rdoc_options: []
58
59
 
59
60
  require_paths: