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

fixing learning object method call

parent 4bd0b545
No related branches found
No related tags found
No related merge requests found
...@@ -116,7 +116,7 @@ class LearningObjectsController < ApplicationController ...@@ -116,7 +116,7 @@ class LearningObjectsController < ApplicationController
end end
def increment_learning_object_views def increment_learning_object_views
View.create(viewable: @learning_object, user: current_user) if user_signed_in? && @learning_object.owner != current_user View.create(viewable: @learning_object, user: current_user) if user_signed_in? && @learning_object.publisher != current_user
end end
def success_redirect(learning_object) def success_redirect(learning_object)
......
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