clarify why twitter wont run

Andrew Cantino 10 years ago
parent
commit
fb40403c9c
1 changed files with 5 additions and 1 deletions
  1. 5 1
      app/concerns/twitter_concern.rb

+ 5 - 1
app/concerns/twitter_concern.rb

@@ -46,7 +46,11 @@ module TwitterConcern
46 46
 
47 47
   module ClassMethods
48 48
     def twitter_dependencies_missing
49
-      "## Include the `twitter`, `omniauth-twitter`, and `cantino-twitter-stream` gems in your Gemfile to use Twitter Agents."
49
+      if defined?(Twitter)
50
+        "## Set TWITTER_OAUTH_KEY and TWITTER_OAUTH_SECRET in your environment to use Twitter Agents."
51
+      else
52
+        "## Include the `twitter`, `omniauth-twitter`, and `cantino-twitter-stream` gems in your Gemfile to use Twitter Agents."
53
+      end
50 54
     end
51 55
   end
52 56
 end