Sha256: 80b0febcd3103a850ccbd1513764fd661858a91bfb3984309c0f2aea7b594eaa
Contents?: true
Size: 490 Bytes
Versions: 6
Compression:
Stored size: 490 Bytes
Contents
class Project < ActiveRecord::Base has_many :tasks accepts_nested_attributes_for :tasks validates :owner, :presence => true validates :if_presence, :presence => true, :if => lambda { true} validates :unless_presence, :presence => true, :unless => lambda { true} validates :create_presence, :presence => true, :on => :create validates :update_presence, :presence => true, :on => :update attr_accessor :if_presence, :unless_presence, :create_presence, :update_presence end
Version data entries
6 entries across 6 versions & 1 rubygems