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
@@ -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="" 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&">')

0 comments on commit 9c61b3e

Please sign in to comment.