1 class VideoPolicy < ActiveRecord::Base
2 validates_presence_of :day
3 validates_presence_of :fee
4 validates_presence_of :period
5 validates_presence_of :description
7 validates_numericality_of :day
8 validates_numericality_of :fee
9 validates_numericality_of :period
13 errors.add(:fee, "must be greater than $0.01") if fee < 0.01