Permalink
Browse files

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

  • Loading branch information...
ugisozols committed Feb 28, 2012
1 parent 99fe637 commit 535954300e5530b366bcc762d7a68143975b510d
Showing with 4 additions and 4 deletions.
  1. +3 −3 app/views/refinery/news/items/index.html.erb
  2. +1 −1 db/seeds.rb
@@ -1,5 +1,5 @@
<% 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" %>
View
@@ -15,7 +15,7 @@
: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

0 comments on commit 5359543

Please sign in to comment.