Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't blow up when GOODREADS_API_KEY isn't available (e.g. rake tasks).

  • Loading branch information...
commit 7be51caf8357971ee9084d1e5bff1cd50a26c3f2 1 parent cf36473
@thegreatape authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 config/initializers/goodreads.rb
View
4 config/initializers/goodreads.rb
@@ -1,4 +1,6 @@
GOODREADS_API_KEY = ENV['GOODREADS_API_KEY']
GOODREADS_API_SECRET = ENV['GOODREADS_API_SECRET']
-Goodreads.configure(GOODREADS_API_KEY)
+if GOODREADS_API_KEY.present?
+ Goodreads.configure(GOODREADS_API_KEY)
+end
Please sign in to comment.
Something went wrong with that request. Please try again.