We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
You can set up a default value for :owner by doing this:
:owner
PublicActivity::StoreController
ApplicationController
class ApplicationController < ActionController::Base include PublicActivity::StoreController end
tracked
class Article < ActiveRecord::Base tracked owner: Proc.new{ |controller, model| controller.current_user } end
Note: current_user applies to Devise, if you are using a different authentication gem or your own code, change the current_user to a method you use.
current_user