X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1e57189366c0e4a49cb29658e9bf5985996709a2..8937099429ef3e30e3431aebc8d8baf266fc3ce8:/app/models/diary_entry.rb diff --git a/app/models/diary_entry.rb b/app/models/diary_entry.rb index 4990a999a..d61241993 100644 --- a/app/models/diary_entry.rb +++ b/app/models/diary_entry.rb @@ -37,8 +37,8 @@ class DiaryEntry < ActiveRecord::Base scope :visible, -> { where(:visible => true) } - validates :title, :body, :presence => true, :invalid_chars => true - validates :title, :length => 1..255 + validates :title, :presence => true, :length => 1..255, :characters => true + validates :body, :presence => true, :characters => true validates :latitude, :allow_nil => true, :numericality => { :greater_than_or_equal_to => -90, :less_than_or_equal_to => 90 }