Commit cd3999fa authored by Uģis Ozols's avatar Uģis Ozols
Browse files

Don't use 'config' when accessing configūration.

parent 80ac5127
<% content_for :body_content_left do %>
<%=raw @page.content_for(Refinery::Pages.config.default_parts.first.to_sym) unless params[:page] %>
<%=raw @page.content_for(Refinery::Pages.default_parts.first.to_sym) unless params[:page] %>
<% if @items.any? %>
<% @items.each do |item| %>
......@@ -21,8 +21,8 @@
<% end -%>
<% content_for :body_content_right_prepend do -%>
<%= raw @page.content_for(::Refinery::Pages.config.default_parts.second.to_sym) %>
<% end if ::Refinery::Pages.config.default_parts.many? -%>
<%= raw @page.content_for(::Refinery::Pages.default_parts.second.to_sym) %>
<% end if ::Refinery::Pages.default_parts.many? -%>
<%= render :partial => '/refinery/news/shared/body_content_right' %>
<%= render :partial => "/refinery/content_page" %>
......@@ -15,7 +15,7 @@ if defined?(::Refinery::Page)
:menu_match => "^/news.*$"
)
::Refinery::Pages.config.default_parts.each do |default_page_part|
::Refinery::Pages.default_parts.each do |default_page_part|
page.parts.create(:title => default_page_part, :body => nil)
end
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment