app/models/locomotive/extensions/page/render.rb in locomotive_cms-2.0.0.rc12 vs app/models/locomotive/extensions/page/render.rb in locomotive_cms-2.0.0

- old
+ new

@@ -27,10 +27,10 @@ page = nil depth = path == 'index' ? 0 : path.split('/').size matching_paths = path == 'index' ? %w(index) : path_combinations(path) - site.pages.where(:depth => depth, :fullpath.in => matching_paths).each do |_page| + site.pages.where(depth: depth, :fullpath.in => matching_paths).each do |_page| if !_page.published? && !logged_in next else if _page.templatized? %r(^#{_page.fullpath.gsub('content_type_template', '([^\/]+)')}$) =~ path \ No newline at end of file