Update railtie.rb

Implement possible recompile fix.