gem_dependency_check is an existing function that shouldn't be overwritten, but called

Dean Putney лет %!s(int64=10): %!d(string=назад)
Родитель
Сommit
59280c04fb
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      app/models/agents/tumblr_publish_agent.rb

+ 1 - 3
app/models/agents/tumblr_publish_agent.rb

@@ -57,9 +57,7 @@ module Agents
57 57
       Set `expected_update_period_in_days` to the maximum amount of time that you'd expect to pass between Events being created by this Agent.
58 58
     MD
59 59
 
60
-    def gem_dependency_check
61
-      defined?(Tumblr)
62
-    end
60
+    gem_dependency_check { defined?(Tumblr) }
63 61
 
64 62
     def validate_options
65 63
       errors.add(:base, "expected_update_period_in_days is required") unless options['expected_update_period_in_days'].present?