Permalink
Browse files

fix seeds for running from plugins

  • Loading branch information...
1 parent ce82986 commit 9c61b3eb8abfe40e36f824fe16a63c18fe6b3037 @drinks drinks committed Oct 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 db/seeds.rb
View
@@ -37,7 +37,7 @@
template_data: {"heading" => "This is an Example Event", "description" => "The next upcoming event will be published to the root URL here."}
)
-if event and event.content_areas
+if event and event.content_areas.any?
event.content_areas.first.update_attributes(html: '<embed wmode="transparent" width="540" id="video-player-flash" height="334" type="application/x-shockwave-flash" src="http://s.ytimg.com/yt/swfbin/watch_as3-vflOU03g2.swf" allowscriptaccess="always" allowfullscreen="true" bgcolor="#000000" flashvars="el=embedded&fexp=907324%2C910104%2C901604&is_html5_mobile_device=false&allow_ratings=1&allow_embed=1&sendtmp=1&hl=en_US&use_tablet_controls=0&eurl=http%3A%2F%2Fdatajam-demo.herokuapp.com%2F&iurl=http%3A%2F%2Fi4.ytimg.com%2Fvi%2FGcf0xGyF37g%2Fhqdefault.jpg&view_count=3188&title=1021%20Days%20Later%20-%20Official%20Trailer&avg_rating=3.90909090909&video_id=Gcf0xGyF37g&length_seconds=86&iurlmaxres=http%3A%2F%2Fi4.ytimg.com%2Fvi%2FGcf0xGyF37g%2Fmaxresdefault.jpg&enablejsapi=1&sk=qc10_TLHn1TNptp-NNOf5pXsWOWt2KZlC&use_native_controls=false&rel=1&playlist_module=http%3A%2F%2Fs.ytimg.com%2Fyt%2Fswfbin%2Fplaylist_module-vflXXCNob.swf&iurlsd=http%3A%2F%2Fi4.ytimg.com%2Fvi%2FGcf0xGyF37g%2Fsddefault.jpg&jsapicallback=ytPlayerOnYouTubePlayerReady&playerapiid=player1&framer=http%3A%2F%2Fdatajam-demo.herokuapp.com%2F">')
end

0 comments on commit 9c61b3e

Please sign in to comment.