Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: babe962e02
Fetching contributors…

Cannot retrieve contributors at this time

file 8 lines (7 sloc) 0.153 kb
1 2 3 4 5 6 7 8
class Comment < ActiveRecord::Base
  belongs_to :photo
  validates_presence_of :author, :body
  
  def blank?
    author.blank? && body.blank?
  end
end
Something went wrong with that request. Please try again.