Sha256: 26a08173429be16de06e60d3673595adde174ffd9e06594d2edab1ca557ce905
Contents?: true
Size: 357 Bytes
Versions: 3
Compression:
Stored size: 357 Bytes
Contents
class FeedbackReview < ActiveRecord::Base belongs_to :review belongs_to :user validates_presence_of :review_id validates_numericality_of :rating, :only_integer => true, :greater_than_or_equal_to => 1, :less_than_or_equal_to => 5, :message => I18n.t('you_must_enter_value_for_rating') default_scope order("feedback_reviews.created_at DESC") end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spree_reviews-0.50.1 | app/models/feedback_review.rb |
spree_reviews-0.50.0 | app/models/feedback_review.rb |
spree_reviews-0.30.0 | app/models/feedback_review.rb |