Fixes for Rails integration - proper requires