Skip to content
Snippets Groups Projects
Commit ff46f743 authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

setting default status for learning object model

parent ce2de513
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@ class LearningObject
validates_presence_of :name, :created_at, :type
def initialize(params={})
status = 'active'
super(params.merge(defaults))
end
......@@ -89,7 +90,7 @@ class LearningObject
end
def excluded_orientdb_properties
['likes', 'views', 'downloads', 'subjects', 'attributes', 'publisher', 'attachment']
['likes', 'views', 'downloads', 'subjects', 'attributes', 'publisher', 'attachments']
end
private
......
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