Skip to content

Commit

Permalink
Make iTunes example clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
cantino committed Mar 17, 2013
1 parent f371431 commit 5bd158c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions db/seeds.rb
Expand Up @@ -31,8 +31,8 @@
}).save!
end

unless user.agents.where(:name => "iTunes Source").exists?
Agent.build_for_type("Agents::WebsiteAgent", user, :name => "iTunes Source",
unless user.agents.where(:name => "iTunes Trailer Source").exists?
Agent.build_for_type("Agents::WebsiteAgent", user, :name => "iTunes Trailer Source",
:schedule => "every_1d",
:options => {
:url => "http://trailers.apple.com/trailers/home/rss/newtrailers.rss",
Expand Down Expand Up @@ -73,5 +73,5 @@
:name => "Afternoon Digest",
:schedule => "5pm",
:options => { :subject => "Your Afternoon Digest", :expected_receive_period_in_days => "7" },
:source_ids => user.agents.where(:name => ["iTunes Source", "XKCD Source"]).pluck(:id)).save!
:source_ids => user.agents.where(:name => ["iTunes Trailer Source", "XKCD Source"]).pluck(:id)).save!
end

0 comments on commit 5bd158c

Please sign in to comment.