Sha256: 5c0003b65e9de9829d9ffddade753bbba5174a1276765cbd58179d639dce84b5
Contents?: true
Size: 297 Bytes
Versions: 14
Compression:
Stored size: 297 Bytes
Contents
class MovieArticle < Article field :rating, :type => Float field :classification, :type => Integer validates_numericality_of :rating, :greater_than => 0, :less_than_or_equal_to => 5 validates_numericality_of :classification, :even => true, :only_integer => true, :allow_nil => false end
Version data entries
14 entries across 14 versions & 2 rubygems