Class: Shoppy::Review

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/shoppy/review.rb

Direct Known Subclasses

Review

Instance Method Summary collapse

Instance Method Details

#customerObject

Relationships



4
# File 'app/models/shoppy/review.rb', line 4

belongs_to :customer

#rateObject

Validators



8
# File 'app/models/shoppy/review.rb', line 8

validates_numericality_of :rate, only_integer: true, message: "can only be an integer"