Don't load octopus/railtie if Rails is not available

When Rails is not available, loading railtie will result in loading Rails, which is not expected when using only AR.