Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Commit

Permalink
Check for integers not booleans - allows full message detail
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydwatkin committed Nov 25, 2012
1 parent 42706ed commit 1f7187d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/buddycloud.rb
Expand Up @@ -27,10 +27,10 @@ def check_config(data)
@password = data['password'] @password = data['password']
@show_commit_summary = false @show_commit_summary = false
@show_commit_detail = 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 @show_commit_summary = true
end 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 @show_commit_detail = true
end end
end end
Expand Down

0 comments on commit 1f7187d

Please sign in to comment.