Skip to content

Commit

Permalink
Only load Railtie if Rails 3 actually available in form of Rails::Rai…
Browse files Browse the repository at this point in the history
…ltie constant


Fixes #113
  • Loading branch information
colszowka committed Feb 24, 2012
1 parent 8e0466b commit 64bfb5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/simplecov.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,5 @@ def usable?
# Load default config
require 'simplecov/defaults'

# Load Rails integration
require 'simplecov/railtie' if defined? Rails
# Load Rails integration (only for Rails 3, see #113)
require 'simplecov/railtie' if defined? Rails::Railtie

0 comments on commit 64bfb5d

Please sign in to comment.