Permalink
Browse files

fix db:seed

  • Loading branch information...
1 parent 9f0e949 commit 3eff5bfa0c33e23779c637393d2dcacd237ddf69 @cantino cantino committed Mar 25, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/models/agents/weather_agent.rb
  2. +1 −1 db/seeds.rb
@@ -61,7 +61,7 @@ def default_options
def validate_options
errors.add(:base, "zipcode is required") unless options[:zipcode].present?
- errors.add(:base, "api_key is required") unless key_setup?
+ errors.add(:base, "api_key is required") unless options[:api_key].present?
end
def check
View
@@ -13,7 +13,7 @@
Agent.build_for_type("Agents::WeatherAgent", user,
:name => "SF Weather Agent",
:schedule => "10pm",
- :options => {:zipcode => "94103"}).save!
+ :options => { :zipcode => "94103", :api_key => "your-key" }).save!
end
unless user.agents.where(:name => "XKCD Source").exists?

0 comments on commit 3eff5bf

Please sign in to comment.