mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-18 12:51:43 +00:00
Add presence validation
This commit is contained in:
parent
b642fa38dc
commit
2ec6c618d8
1 changed files with 4 additions and 4 deletions
|
@ -67,10 +67,10 @@ module Agents
|
|||
MD
|
||||
|
||||
def validate_options
|
||||
# unless options['uid'].present? &&
|
||||
# options['expected_update_period_in_days'].present?
|
||||
# errors.add(:base, "expected_update_period_in_days and uid are required")
|
||||
# end
|
||||
unless options['uri'].present? &&
|
||||
options['topic'].present?
|
||||
errors.add(:base, "topic and uri are required")
|
||||
end
|
||||
end
|
||||
|
||||
def working?
|
||||
|
|
Loading…
Add table
Reference in a new issue