Fix uninitialized constant error raised in Rails 4