ADD rails-4 support