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

fixing draft namescpe

parent 17577250
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ class LearningObjectsController < ApplicationController
# POST /learning_objects
# POST /learning_objects.json
def create
@draft = Draft.new(learning_object_params)
@draft = LearningObject::Draft.new(learning_object_params)
@draft.subjects = build_subjects learning_object_params[:subjects]
respond_to do |format|
......@@ -80,7 +80,7 @@ class LearningObjectsController < ApplicationController
if request.xhr?
render json: {count: @learning_object.likes, id: params[:id]}
end
end
end
def download
@learning_object.download current_user
......
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