Permalink
Browse files

Let's make sure to load the configuration before processing the payload.

  • Loading branch information...
1 parent 2451352 commit 7f70dfb8682abb97183ed8400b75c2c3b142831c Brian Donovan committed Jul 15, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/github-campfire.rb
View
@@ -9,8 +9,8 @@ class GithubCampfire
DEFAULT_TEMPLATE = "[<%= commit['repo'] %>] <%= commit['message'] %> - <%= commit['author']['name'] %> (<%= commit['url'] %>)".freeze
def initialize(payload=nil)
- process_payload(payload) if payload
@repos = YAML.load_file(ENV['CONFIG'] || 'config.yml')
+ process_payload(payload) if payload
end
def process_payload(payload)

0 comments on commit 7f70dfb

Please sign in to comment.