resources: fix odd require not working on 2.1

This segfaults on Ruby 2.1 in the context of Shopify (but not standalone). Exactly why is a mystery to me. I'll forward this to a Ruby core dev to see get some more insight. For now, this should definitely work.

@csaunders @maartenvg