summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/helpers/twitter_helper.rb4
-rw-r--r--config/defaults.yml4
2 files changed, 3 insertions, 5 deletions
diff --git a/app/helpers/twitter_helper.rb b/app/helpers/twitter_helper.rb
index 834e5c6..1081c05 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
diff --git a/config/defaults.yml b/config/defaults.yml
index c06ea7c..bcb8dac 100644
--- a/config/defaults.yml
+++ b/config/defaults.yml
@@ -126,10 +126,6 @@ development:
secret_token: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
reraise_errors: true
- twitter:
- twitter_handle : Change_to_your_Twitter_handle
- bearer_token : Change_to_your_Bearer_token
-
test:
<<: *downloads
<<: *dev_ca