From 2bade857933a30cb8645d1bc07116c9b53270c17 Mon Sep 17 00:00:00 2001 From: "Timothy N. Tsvetkov" Date: Tue, 5 Apr 2011 19:50:59 +0400 Subject: [PATCH] fixed: valudate :prop_name to validates :prop_name --- app/models/container.rb | 6 +++--- app/models/rpm.rb | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/models/container.rb b/app/models/container.rb index c5caf14f1..a892bc7a4 100644 --- a/app/models/container.rb +++ b/app/models/container.rb @@ -1,7 +1,7 @@ class Container < ActiveRecord::Base - validate :name, :presence => true - validate :project_id, :presence => true - validate :onwer_id, :presence => true + validates :name, :presence => true + validates :project_id, :presence => true + validates :onwer_id, :presence => true belongs_to :project belongs_to :owner, :class_name => 'User', :foreign_key => 'owner_id' diff --git a/app/models/rpm.rb b/app/models/rpm.rb index a66609da1..7422039ad 100644 --- a/app/models/rpm.rb +++ b/app/models/rpm.rb @@ -1,7 +1,7 @@ class Rpm < ActiveRecord::Base - validate :name, :presence => true - validate :arch_id, :presence => true - validate :project_id, :presence => true + validates :name, :presence => true + validates :arch_id, :presence => true + validates :project_id, :presence => true belongs_to :arch belongs_to :project