Removed rails dependency to support rails 2.3