Sha256: bfe46758c45b2b45e67824f9caa53200ac222a81cfc282430d1c94fcfa6e5e58
Contents?: true
Size: 473 Bytes
Versions: 20
Compression:
Stored size: 473 Bytes
Contents
module Pack class Suite < ActiveRecord::Base has_many :srows, :dependent => :destroy accepts_nested_attributes_for :srows, :reject_if => lambda { |attributes| !attributes.present? }, :allow_destroy => true validates :title, :presence => true, :length => { in: 2..255 } end end
Version data entries
20 entries across 20 versions & 1 rubygems