lib/slide_hero/slide.rb in slide_hero-0.0.10 vs lib/slide_hero/slide.rb in slide_hero-0.0.11

- old
+ new

@@ -11,11 +11,11 @@ @background= background instance_eval(&point_block) if block_given? end - create_plugs_for Note, Point, List, Code, Image, RemoteImage, Media + create_plugs_for Note, Point, List, Code, Image, RemoteImage, Media, Blockquote def points @points ||= [] end @@ -28,10 +28,10 @@ }[headline_size] end def data_attributes "data-transition=\"#{transition}\"".tap do |attr| - case + case when String(background).start_with?('http') attr << " data-background=\"#{background}\"" when String(background).include?('.') filename = background.gsub(/\s/, "%20") attr << " data-background=\"/images/#{filename}\""