Skip to content

Commit

Permalink
. variable renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
andi committed Sep 27, 2010
1 parent b732c16 commit 8d41fe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/simple_navigation/core/item_container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def level_for_item(navi_key)
#
# The options are the same as in the view's render_navigation call (they get passed on)
def render(options={})
renderer_class = if options[:renderer]
renderer_instance = if options[:renderer]
if options[:renderer].instance_of?(Symbol) && SimpleNavigation.registered_renderers.key?(options[:renderer])
SimpleNavigation.registered_renderers[options[:renderer]].new(options)
else
Expand All @@ -80,7 +80,7 @@ def render(options={})
else
self.renderer.new(options)
end
renderer_class.render(self)
renderer_instance.render(self)
end

# Returns true if any of this container's items is selected.
Expand Down

0 comments on commit 8d41fe8

Please sign in to comment.