Permalink
Browse files

Change :on_change to string.

If not this the seed does not work
  • Loading branch information...
1 parent b65bb8d commit c8c46743e34fdc7546ca3d392a660dae7be61d50 @jeremi jeremi committed Feb 20, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 db/seeds.rb
View
@@ -23,7 +23,7 @@
:type => "html",
:options => {
:url => "http://xkcd.com",
- :mode => :on_change,
+ :mode => "on_change",
:expected_update_period_in_days => 5,
:extract => {
:url => {:css => "#comic img", :attr => "src"},
@@ -37,7 +37,7 @@
:schedule => "every_1d",
:options => {
:url => "http://trailers.apple.com/trailers/home/rss/newtrailers.rss",
- :mode => :on_change,
+ :mode => "on_change",
:type => "xml",
:expected_update_period_in_days => 5,
:extract => {
@@ -76,4 +76,4 @@
:schedule => "5pm",
:options => { :subject => "Your Afternoon Digest", :expected_receive_period_in_days => "7" },
:source_ids => user.agents.where(:name => ["iTunes Trailer Source", "XKCD Source"]).pluck(:id)).save!
-end
+end

0 comments on commit c8c4674

Please sign in to comment.