]> git.openstreetmap.org Git - rails.git/commitdiff
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 4e89cb2e1648dd709f3e99cd715ee8df22b99c44..e3a3ec921b62f25cdfa13713aabb2b2c2490f371 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