Potentional fix for rails

@ajself