From be7b1f6046dea418221a15f30302658dcb6dca0e Mon Sep 17 00:00:00 2001
From: Marcela Ribeiro de Oliveira <mro15@inf.ufpr.br>
Date: Wed, 25 Jan 2017 10:05:22 -0200
Subject: [PATCH] set_collection to be subjectable and stageable

---
 app/controllers/v1/collections_controller.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/controllers/v1/collections_controller.rb b/app/controllers/v1/collections_controller.rb
index faabda49..0e0727c0 100644
--- a/app/controllers/v1/collections_controller.rb
+++ b/app/controllers/v1/collections_controller.rb
@@ -83,8 +83,8 @@ class V1::CollectionsController < ApplicationController
   def followable; set_collection; end
   def taggable; set_collection; end
   def sociable; set_collection; end
-  def subjectable; set_learning_object; end
-  def stageable; set_learning_object; end
+  def subjectable; set_collection; end
+  def stageable; set_collection; end
 
   def set_collection
     @collection ||= Collection.find(params[:id])
-- 
GitLab