Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,7 @@ def video_embed_tag(link)

if domain.include?("youtube")

query_string = link.split("?").last
if query_string
parameters = query_string.split("&")
if parameters
id_param = parameters.select { |parameter| parameter[0..1] == "v=" }.first
if id_param
id = id_param.split("=").last
end
end
end
link.split("v=")[1].split("&")[0]

return "<iframe width='853'
height='505'
Expand Down