summaryrefslogtreecommitdiff
path: root/app/helpers/twitter_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/twitter_helper.rb')
-rw-r--r--app/helpers/twitter_helper.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/helpers/twitter_helper.rb b/app/helpers/twitter_helper.rb
index d20b7da..b360895 100644
--- a/app/helpers/twitter_helper.rb
+++ b/app/helpers/twitter_helper.rb
@@ -1,6 +1,8 @@
module TwitterHelper
def twitter_enabled
- Rails.application.secrets.twitter['enabled'] == true
+ if Rails.application.secrets.twitter
+ Rails.application.secrets.twitter['enabled'] == true
+ end
end
def twitter_client