Skip to content

Commit

Permalink
Shorten the name of the global to $load_god
Browse files Browse the repository at this point in the history
  • Loading branch information
eric committed May 9, 2012
1 parent 1a81a1b commit 64a0ec2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/god
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ begin
end

# Use this flag to actually load all of the god infrastructure
$should_really_load_god = true
$load_god = true

# dispatch
if !options[:config] && options[:version]
Expand Down
2 changes: 1 addition & 1 deletion lib/god.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# We are doing this to guard against bundler autoloading because there is
# no value in loading god in most processes.
if $should_really_load_god
if $load_god

# core
require 'stringio'
Expand Down
2 changes: 1 addition & 1 deletion test/helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$:.unshift File.expand_path('../../lib', __FILE__) # For use/testing when no gem is installed

# Use this flag to actually load all of the god infrastructure
$should_really_load_god = true
$load_god = true

require File.join(File.dirname(__FILE__), *%w[.. lib god sys_logger])
require File.join(File.dirname(__FILE__), *%w[.. lib god])
Expand Down

0 comments on commit 64a0ec2

Please sign in to comment.