Commit 9d2d6b4b86586ed248d58ea717552d5541e260ec

Authored by Rodrigo Souto
1 parent 3ea04c54

Changing variable name to default convention

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/views/box_organizer/_article_block.rhtml
@@ -6,8 +6,8 @@ @@ -6,8 +6,8 @@
6 <% else %> 6 <% else %>
7 <% 7 <%
8 articles = @block.available_articles.select {|a| !a.folder? || a.blog? } 8 articles = @block.available_articles.select {|a| !a.folder? || a.blog? }
9 - firstText = articles[articles.find_index{|a| a.kind_of?TextArticle}||-1]  
10 - selected = @block.article || firstText 9 + first_text = articles[articles.find_index{|a| a.kind_of? TextArticle}||-1]
  10 + selected = @block.article || first_text
11 %> 11 %>
12 <%= select_tag( 12 <%= select_tag(
13 'block[article_id]', 13 'block[article_id]',