Skip to content
Snippets Groups Projects
Commit a4e0460c authored by Mateus Rambo Strey's avatar Mateus Rambo Strey
Browse files

fix learning object initialize

parent 96ca98eb
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ class LearningObject
validates_presence_of :name, :created_at, :type
def initialize(params={})
super(params.merge(defaults))
super(params.merge(defaults) { |key, oldval, newval| oldval.blank? ? newval : oldval })
end
def retrievelink
......
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