Sha256: f4a438c62ab75876666cd8060ab3835f0c2ad5e2c8515e7f46579e803f282ea0
Contents?: true
Size: 246 Bytes
Versions: 2
Compression:
Stored size: 246 Bytes
Contents
class SpudInquiry < ActiveRecord::Base has_many :spud_inquiry_fields belongs_to :spud_inquiry_form accepts_nested_attributes_for :spud_inquiry_fields, :reject_if => lambda { |a| a[:name].blank? } validates :email,:presence => true end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spud_inquiries-0.8.0 | app/models/spud_inquiry.rb |
spud_inquiries-0.3.4 | app/models/spud_inquiry.rb |