Skip to content

Commit df74e2a

Browse files
committed
Check for ::Rails instead of Rails::Railtie
1 parent d9655a9 commit df74e2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/split.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def configure
6767
end
6868

6969
# Check to see if being run in a Rails application. If so, wait until before_initialize to run configuration so Gems that create ENV variables have the chance to initialize first.
70-
if defined?(Rails::Railtie)
70+
if defined?(::Rails)
7171
class Railtie < Rails::Railtie
7272
config.before_initialize { Split.configure {} }
7373
end

0 commit comments

Comments
 (0)