fixed: valudate :prop_name to validates :prop_name

This commit is contained in:
Timothy N. Tsvetkov 2011-04-05 19:50:59 +04:00
parent 6b26715e22
commit 2bade85793
2 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
class Container < ActiveRecord::Base class Container < ActiveRecord::Base
validate :name, :presence => true validates :name, :presence => true
validate :project_id, :presence => true validates :project_id, :presence => true
validate :onwer_id, :presence => true validates :onwer_id, :presence => true
belongs_to :project belongs_to :project
belongs_to :owner, :class_name => 'User', :foreign_key => 'owner_id' belongs_to :owner, :class_name => 'User', :foreign_key => 'owner_id'

View File

@ -1,7 +1,7 @@
class Rpm < ActiveRecord::Base class Rpm < ActiveRecord::Base
validate :name, :presence => true validates :name, :presence => true
validate :arch_id, :presence => true validates :arch_id, :presence => true
validate :project_id, :presence => true validates :project_id, :presence => true
belongs_to :arch belongs_to :arch
belongs_to :project belongs_to :project