lib/videos/video.rb in rb42-videos-1.0.4 vs lib/videos/video.rb in rb42-videos-1.0.5

- old
+ new

@@ -1,11 +1,7 @@ -require 'action_view' - class Videos::Video - include ActionView::Helpers::TagHelper - include ActionView::Helpers::TextHelper - include ActionView::Context + include Videos::TagHelpers attr_reader :uri attr_accessor :options DEFAULTS = { width: 640, @@ -17,11 +13,11 @@ @options = DEFAULTS.merge(options) end def embed_code content_tag(:video, '', controls: controls) do - concat(tag(:source, src: @uri.to_s, type: @uri.content_type)) - concat(content_tag(:span, sorry_message, class: 'sorry')) + tag(:source, src: @uri.to_s, type: @uri.content_type) + + content_tag(:span, sorry_message, class: 'sorry') end end alias_method :to_html, :embed_code def sorry_message