Skip to content

Commit 9a140a0

Browse files
author
Russell Jones
committed
fixed a ruby 1.9 issue for Array.to_s. closes #1
1 parent 2f58971 commit 9a140a0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

helpers/accordions_helper.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,15 @@ def create( accordion_id, accordion_text, options={}, &block )
2828
def render
2929
content_tag :div, { :id => :accordions }.merge( @options ) do
3030
@accordions.collect do |accordion|
31-
content_tag :div, accordion[2].merge( :id => accordion[0] ) do
32-
accordion_head(accordion) + accordion_body(accordion)
33-
end
34-
end
31+
accordion_head(accordion) + accordion_body(accordion)
32+
end.join
3533
end
3634
end
3735

3836
private # ---------------------------------------------------------------------------
3937

4038
def accordion_head(accordion)
41-
content_tag :h3 do
39+
content_tag :h3, :id => accordion[0] do
4240
link_to accordion[1], '#'
4341
end
4442
end

0 commit comments

Comments
 (0)