X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/15b104f4ff4614aa78c01180b6a9b89dd5a1400f..35a2d66e1960b00e5ed0cecbe4263cdeedb1ad62:/app/models/diary_entry.rb diff --git a/app/models/diary_entry.rb b/app/models/diary_entry.rb index 2a24d8002..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 - 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 }