Fixed error when not using Rails - closes #105