Skip to content

Commit

Permalink
set @tabnav_breadcrums in render_tabnav as well, so we don't need tem…
Browse files Browse the repository at this point in the history
…plates for navigations
  • Loading branch information
niklas committed Dec 2, 2009
1 parent a10fc73 commit e14569a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/widgets/tabnav_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def tabnav_breadcrumbs

# renders the tabnav
def render_tabnav(name, opts={}, &proc)
self.instance_variable_set(:@tabnav_breadcrumbs,[]) if self.instance_variable_get(:@tabnav_breadcrumbs).nil?
raise ArgumentError, "Missing name parameter in tabnav call" unless name
raise ArgumentError, "Missing block in tabnav call" unless block_given?
@_tabnav = Tabnav.new(name, opts)
Expand Down

0 comments on commit e14569a

Please sign in to comment.