ecm_cms 1.0.0.pre → 1.0.1.pre

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ module Ecm
4
4
  module PageResolver
5
5
  def self.included(base)
6
6
  # add the page resolver
7
- base.append_view_path ::Ecm::Cms::PageResolver.instance unless base.view_paths.include?(::Ecm::Cms::PageResolver.instance)
7
+ base.prepend_view_path ::Ecm::Cms::PageResolver.instance unless base.view_paths.include?(::Ecm::Cms::PageResolver.instance)
8
8
  end
9
9
  end
10
10
  end
@@ -4,7 +4,7 @@ module Ecm
4
4
  module PartialResolver
5
5
  def self.included(base)
6
6
  # add the partial resolver
7
- base.append_view_path ::Ecm::Cms::PartialResolver.instance unless base.view_paths.include?(::Ecm::Cms::PartialResolver.instance)
7
+ base.prepend_view_path ::Ecm::Cms::PartialResolver.instance unless base.view_paths.include?(::Ecm::Cms::PartialResolver.instance)
8
8
  end
9
9
  end
10
10
  end
@@ -4,7 +4,7 @@ module Ecm
4
4
  module TemplateResolver
5
5
  def self.included(base)
6
6
  # add the template resolver
7
- base.append_view_path ::Ecm::Cms::TemplateResolver.instance unless base.view_paths.include?(::Ecm::Cms::TemplateResolver.instance)
7
+ base.prepend_view_path ::Ecm::Cms::TemplateResolver.instance unless base.view_paths.include?(::Ecm::Cms::TemplateResolver.instance)
8
8
  end
9
9
  end
10
10
  end
@@ -63,7 +63,7 @@ module Ecm
63
63
  :virtual_path => "#{record.pathname}#{record.basename}"
64
64
  }
65
65
 
66
- details[:layout] = record.layout if record.layout.present?
66
+ details[:layout] = record.layout if record.respond_to?(:layout) && record.layout.present?
67
67
 
68
68
  ::ActionView::Template.new(source, identifier, handler, details)
69
69
  end
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module Cms
3
- VERSION = "1.0.0.pre"
3
+ VERSION = "1.0.1.pre"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_cms
3
3
  version: !ruby/object:Gem::Version
4
- hash: 961915988
4
+ hash: 961915984
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
9
+ - 1
10
10
  - pre
11
- version: 1.0.0.pre
11
+ version: 1.0.1.pre
12
12
  platform: ruby
13
13
  authors:
14
14
  - Roberto Vasquez Angel
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2013-03-16 00:00:00 Z
19
+ date: 2013-03-17 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: rails