mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
fix db:seed
This commit is contained in:
parent
9f0e949fd8
commit
3eff5bfa0c
2 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ module Agents
|
|||
|
||||
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
|
||||
|
|
|
@ -13,7 +13,7 @@ unless user.agents.where(:name => "SF Weather Agent").exists?
|
|||
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?
|
||||
|
|
Loading…
Add table
Reference in a new issue