From ec39a56275a20be7a2af3b9edd1c55251cb16352 Mon Sep 17 00:00:00 2001 From: "t.felgentreff" Date: Thu, 25 Mar 2010 19:47:36 +0000 Subject: [PATCH] add missing relation git-svn-id: https://dev.finn.de/svn/cockpit/trunk@690 7926756e-e54e-46e6-9721-ed318f58905e --- app/models/rate.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/rate.rb b/app/models/rate.rb index e9118f3302..b45961a1ec 100644 --- a/app/models/rate.rb +++ b/app/models/rate.rb @@ -1,5 +1,7 @@ class Rate < ActiveRecord::Base validates_numericality_of :rate, :allow_nil => false, :message => :activerecord_error_invalid + belongs_to :user + belongs_to :project def self.clean_currency(value) if value && value.is_a?(String)