diff --git a/app/models/learning_object.rb b/app/models/learning_object.rb index a18e3d5a410bd06b82c1b8da322fe85fb3bde99f..3f2811404a8495c2c7b3532552d15e3658c6767e 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))