Skip to content
Snippets Groups Projects
Commit 246ba6de authored by Matheus Agio Nerone's avatar Matheus Agio Nerone
Browse files

remove verifications

parent 4f40e6a4
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment