aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'site/app/models/approval.rb')
-rw-r--r--site/app/models/approval.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/site/app/models/approval.rb b/site/app/models/approval.rb
index d36232c..923ba97 100644
--- a/site/app/models/approval.rb
+++ b/site/app/models/approval.rb
@@ -11,8 +11,7 @@ class Approval < ActiveRecord::Base
belongs_to :user, :null => false
belongs_to :agenda, :null => false
- validates_presence_of :user_id
- validates_presence_of :agenda_id
+ validates_presence_of :user_id, :agenda_id
validates_uniqueness_of :user_id, :scope => :agenda_id
def view_permitted?(field)