Change railties dependecy to make gem compatible with Rails 4