Skip to content

Commit

Permalink
avoid warnings on multiple requires
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://rubyforge.org/var/svn/spawn/spawn@32 2aabfe31-cc40-457c-aec7-21ad9ce7fb7d
  • Loading branch information
tra committed Mar 9, 2009
1 parent bfedf74 commit 2a5ce6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/spawn.rb
@@ -1,6 +1,6 @@
module Spawn
RAILS_1_x = (::Rails::VERSION::MAJOR == 1)
RAILS_2_2 = (::Rails::VERSION::MAJOR > 2 || (::Rails::VERSION::MAJOR == 2 && ::Rails::VERSION::MINOR >= 2))
RAILS_1_x = (::Rails::VERSION::MAJOR == 1) unless defined?(RAILS_1_x)
RAILS_2_2 = (::Rails::VERSION::MAJOR > 2 || (::Rails::VERSION::MAJOR == 2 && ::Rails::VERSION::MINOR >= 2)) unless defined?(RAILS_2_2)

# default to forking (unless windows or jruby)
@@method = (RUBY_PLATFORM =~ /(win32|java)/) ? :thread : :fork
Expand Down

0 comments on commit 2a5ce6a

Please sign in to comment.