Skip to content

Commit

Permalink
Quick update to render_media_items helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Russell committed Feb 17, 2010
1 parent 2d48984 commit 6bf87b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ def embed_html_audio audio, options = {}
end

def render_media_items item
return false unless item.media_item?
output = []
['audio', 'video', 'image'].each do |media|
next unless item.send("#{media}_item?")
Expand Down

0 comments on commit 6bf87b3

Please sign in to comment.