Skip exclude_replies validation

Vlad 9 lat temu
rodzic
commit
ff050dd9be
1 zmienionych plików z 0 dodań i 4 usunięć
  1. 0 4
      app/models/agents/twitter_user_agent.rb

+ 0 - 4
app/models/agents/twitter_user_agent.rb

@@ -67,10 +67,6 @@ module Agents
67 67
       if options[:include_retweets].present? && !%w[true false].include?(options[:include_retweets])
68 68
         errors.add(:base, "include_retweets must be a boolean value string (true/false)")
69 69
       end
70
-      
71
-      if options[:exclude_replies].present? && !%w[true false].include?(options[:exclude_replies])
72
-        errors.add(:base, "exclude_replies must be a boolean value string (true/false)")
73
-      end
74 70
 
75 71
       if options[:starting_at].present?
76 72
         Time.parse(options[:starting_at]) rescue errors.add(:base, "Error parsing starting_at")