radiant-children_config-extension 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,8 +5,8 @@ module ChildrenConfig::PagesControllerExtensions
5
5
 
6
6
  def new
7
7
  unless params[:page_id].blank?
8
- parent_page = Page.find(params[:page_id]);
9
- child_parts = parent_page.part("children_config").content
8
+ parent_page = Page.find(params[:page_id])
9
+ child_parts = parent_page.part("children_config").try(:content)
10
10
  self.model = model_class.new_with_children_config(config, child_parts)
11
11
  else
12
12
  self.model = model_class.new_with_defaults(config)
@@ -1,3 +1,3 @@
1
1
  module RadiantChildrenConfigExtension
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
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: 17
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 3
10
- version: 1.0.3
9
+ - 4
10
+ version: 1.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Your Name
@@ -44,6 +44,7 @@ files:
44
44
  - radiant-children_config-extension-1.0.0.gem
45
45
  - radiant-children_config-extension-1.0.1.gem
46
46
  - radiant-children_config-extension-1.0.2.gem
47
+ - radiant-children_config-extension-1.0.3.gem
47
48
  - radiant-children_config-extension.gemspec
48
49
  - Rakefile
49
50
  - README.md
@@ -54,7 +55,7 @@ files:
54
55
  homepage: http://yourwebsite.com/children_config
55
56
  licenses: []
56
57
 
57
- post_install_message: "\n Add this to your radiant project with:\n config.gem 'radiant-children_config-extension', :version => '~>1.0.3'\n "
58
+ post_install_message: "\n Add this to your radiant project with:\n config.gem 'radiant-children_config-extension', :version => '~>1.0.4'\n "
58
59
  rdoc_options: []
59
60
 
60
61
  require_paths: