diff options
| author | mo khan <mo@mokhan.ca> | 2013-10-24 22:20:04 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-10-24 22:20:04 -0600 |
| commit | 2ac0bbb40a6eae21c706fd6c86534dc49abebfbc (patch) | |
| tree | 527ef22bfe995cbc76ec2eb8d3c7625344db9445 /app/helpers | |
| parent | 0648fa48042f78ac1c6621f613107e86ca29b294 (diff) | |
fix broken add to favorites spec.
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/application_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 50de2242..b4e8bac2 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -25,7 +25,7 @@ module ApplicationHelper end message = Base64.encode64(data).gsub("\n", "") timestamp = Time.now.to_i - signature = OpenSSL::HMAC.hexdigest('sha1', ENV['DISQUS_SECRET_KEY'], "#{message} #{timestamp}") + signature = OpenSSL::HMAC.hexdigest('sha1', ENV['DISQUS_SECRET_KEY'] || '', "#{message} #{timestamp}") "#{message} #{signature} #{timestamp}" end end |
