Use momentjs-rails 2.5.0 or higher.