Move utf8 validator into app/validators
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 6 Feb 2019 11:11:44 +0000 (12:11 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 6 Feb 2019 11:11:44 +0000 (12:11 +0100)
app/models/message.rb
app/validators/utf8_validator.rb [moved from lib/validators.rb with 100% similarity]

index 4e89cb2..e3a3ec9 100644 (file)
@@ -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