From 32ce4ea527fc9679b706bdda85976b403926ab30 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 6 Feb 2019 12:11:44 +0100 Subject: [PATCH] Move utf8 validator into app/validators --- app/models/message.rb | 2 -- lib/validators.rb => app/validators/utf8_validator.rb | 0 2 files changed, 2 deletions(-) rename lib/validators.rb => app/validators/utf8_validator.rb (100%) diff --git a/app/models/message.rb b/app/models/message.rb index 4e89cb2e1..e3a3ec921 100644 --- a/app/models/message.rb +++ b/app/models/message.rb @@ -24,8 +24,6 @@ # messages_to_user_id_fkey (to_user_id => users.id) # -require "validators" - class Message < ActiveRecord::Base belongs_to :sender, :class_name => "User", :foreign_key => :from_user_id belongs_to :recipient, :class_name => "User", :foreign_key => :to_user_id diff --git a/lib/validators.rb b/app/validators/utf8_validator.rb similarity index 100% rename from lib/validators.rb rename to app/validators/utf8_validator.rb -- 2.39.5