Skip to content

Commit

Permalink
Merge pull request refinery#1755 from gwagener/decrease_coupling
Browse files Browse the repository at this point in the history
Decrease coupling by using available methods
  • Loading branch information
parndt committed Jun 13, 2012
2 parents 3386fcd + a3d4f17 commit 9bce4de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/refinery/menu.rb
Expand Up @@ -15,7 +15,7 @@ def items
end

def roots
@roots ||= items.select {|item| item.parent_id.nil?}
@roots ||= items.select {|item| !item.has_parent?}
end

def to_s
Expand Down

0 comments on commit 9bce4de

Please sign in to comment.