Fix constantize error (Rails 4)