Sha256: 20de46bd87b783e664efccd168eba060593e9c112a045157d98c98e27e8b23df
Contents?: true
Size: 212 Bytes
Versions: 1
Compression:
Stored size: 212 Bytes
Contents
class Comment < ActiveRecord::Base belongs_to :picture validates_presence_of :author, :email, :body, :ip, :picture_id validates_format_of :email, :with => /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pictrails-0.5.0 | app/models/comment.rb |