Skip to content

Commit

Permalink
Fix incorrect 'true' definition
Browse files Browse the repository at this point in the history
  • Loading branch information
charper committed Jun 7, 2011
1 parent 5f867d7 commit 0c93729
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/build.rb
Expand Up @@ -19,7 +19,7 @@ class Build < ActiveRecord::Base
class << self
def create_from_github_payload(payload)
data = Github::ServiceHook::Payload.new(JSON.parse(payload))
return false if data.repository.private == 'true'
return false if data.repository.private
repository = Repository.find_or_create_by_github_repository(data.repository)
number = repository.builds.next_number
build = data.builds.last
Expand Down
2 changes: 1 addition & 1 deletion test/test_helpers/payloads.rb
Expand Up @@ -3,7 +3,7 @@
"repository": {
"url": "http://github.com/svenfuchs/gem-release",
"name": "gem-release",
"private":"true"
"private":true,
"owner": {
"email": "svenfuchs@artweb-design.de",
"name": "svenfuchs"
Expand Down

0 comments on commit 0c93729

Please sign in to comment.