Replace gem dependency on Rails with Railties