Sha256: a7f9bbd26de42ef5e170b18efaf07f77ee73c00b83bcd79dac6320b2c9cbc59b

Contents?: true

Size: 153 Bytes

Versions: 30

Compression:

Stored size: 153 Bytes

Contents

class Comment < ActiveRecord::Base
  belongs_to :photo
  validates_presence_of :author, :body
  
  def blank?
    author.blank? && body.blank?
  end
end

Version data entries

30 entries across 30 versions & 4 rubygems

Version Path
giraffesoft-attribute_fu-0.2 test/app/models/comment.rb
kdmny-spree-0.0.1 vendor/plugins/attribute_fu/test/models/comment.rb
spree-0.11.4 vendor/plugins/attribute_fu/test/models/comment.rb
spree-0.11.3 vendor/plugins/attribute_fu/test/models/comment.rb
spree-0.11.2 vendor/plugins/attribute_fu/test/models/comment.rb
spree-0.11.1 vendor/plugins/attribute_fu/test/models/comment.rb
spree-0.11.0 vendor/plugins/attribute_fu/test/models/comment.rb
spree-0.10.2 vendor/plugins/attribute_fu/test/models/comment.rb
spree-0.10.1 vendor/plugins/attribute_fu/test/models/comment.rb
spree-0.10.0 vendor/plugins/attribute_fu/test/models/comment.rb
spree-0.10.0.beta vendor/plugins/attribute_fu/test/models/comment.rb
spree-enriquez-0.9.4 vendor/plugins/attribute_fu/test/models/comment.rb
spree-0.9.4 vendor/plugins/attribute_fu/test/models/comment.rb
spree-0.9.3 vendor/plugins/attribute_fu/test/models/comment.rb
spree-0.9.2 vendor/plugins/attribute_fu/test/models/comment.rb
spree-0.9.1 vendor/plugins/attribute_fu/test/models/comment.rb
spree-0.9.0 vendor/plugins/attribute_fu/test/models/comment.rb
spree-0.8.4 vendor/plugins/attribute_fu/test/models/comment.rb
spree-0.8.5 vendor/plugins/attribute_fu/test/models/comment.rb
spree-0.4.0 vendor/plugins/attribute_fu/test/app/models/comment.rb