X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c2f23fea6a7821a4ad4c97fd65744b138ec86267..c8e21c409c9bec446f0caa2526d5b07861bb3299:/app/models/report.rb diff --git a/app/models/report.rb b/app/models/report.rb index ac00f1cfb..9afedb04e 100644 --- a/app/models/report.rb +++ b/app/models/report.rb @@ -21,13 +21,13 @@ # reports_user_id_fkey (user_id => users.id) # -class Report < ActiveRecord::Base +class Report < ApplicationRecord belongs_to :issue, :counter_cache => true belongs_to :user validates :issue, :presence => true validates :user, :presence => true - validates :details, :presence => true, :invalid_chars => true + validates :details, :presence => true, :characters => true validates :category, :presence => true def self.categories_for(reportable)