Permalink
Browse files

Check for integers not booleans - allows full message detail

  • Loading branch information...
lloydwatkin committed Nov 25, 2012
1 parent 42706ed commit 1f7187d386325ea7452ecbc9678ca3ebe72144f3
Showing with 2 additions and 2 deletions.
  1. +2 −2 services/buddycloud.rb
View
@@ -27,10 +27,10 @@ def check_config(data)
@password = data['password']
@show_commit_summary = false
@show_commit_detail = false
- if data.has_key?('show_commit_summary') && data['show_commit_summary'] == true
+ if data.has_key?('show_commit_summary') && data['show_commit_summary'].to_i == 1
@show_commit_summary = true
end
- if data.has_key?('show_commit_detail') && data['show_commit_detail'] == true
+ if data.has_key?('show_commit_detail') && data['show_commit_detail'].to_i == 1
@show_commit_detail = true
end
end

0 comments on commit 1f7187d

Please sign in to comment.