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

tracking some models

parent 0c4db024
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@ class ApplicationController < ActionController::API
include ActionController::Serialization
include DeviseTokenAuth::Concerns::SetUserByToken
include Pundit
include PublicActivity::StoreController
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
......
......@@ -29,6 +29,7 @@ class Collection < ActiveRecord::Base
include Scoreable
include Thumbnailable
include Taggable
include Trackable
has_many :collection_items, as: :collectionable, dependent: :destroy
has_many :collections, through: :collection_items, source: :collectionable, source_type: 'Collection'
......
module Trackable
extend ActiveSupport::Concern
include PublicActivity::Model
included do
tracked
end
end
......@@ -38,6 +38,7 @@ class LearningObject < ActiveRecord::Base
include Scoreable
include Thumbnailable
include Taggable
include Trackable
has_many :collection_items, as: :collectionable
has_many :collections, through: :collection_items
......
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