From 246ba6de38b476446cf7a6cbcf870565f16d4a6f Mon Sep 17 00:00:00 2001 From: Matheus Agio Nerone <man13@inf.ufpr.br> Date: Tue, 17 Nov 2015 09:17:51 -0200 Subject: [PATCH] remove verifications Signed-off-by: Matheus Agio Nerone <man13@inf.ufpr.br> --- app/models/learning_object.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/models/learning_object.rb b/app/models/learning_object.rb index a18e3d5a..3f281140 100644 --- a/app/models/learning_object.rb +++ b/app/models/learning_object.rb @@ -11,10 +11,7 @@ class LearningObject # Relation attrs :likes, :views, :downloads, :subjects, :attributes, :publisher - validates_presence_of :name, :created_at, :type, :likes, :views, :downloads - validates_numericality_of :likes, greater_than_or_equal_to: 0 - validates_numericality_of :views, greater_than_or_equal_to: 0 - validates_numericality_of :downloads, greater_than_or_equal_to: 0 + validates_presence_of :name def initialize(params={}) super(params.merge(defaults)) -- GitLab