I am using public\_activity gem in my app and to track the owner who created the record to track the event model, I am using devise and I have two types of users, individual and company , my code is this to track the owner

```
class Event < ActiveRecord::Base
  include PublicActivity::Model
  tracked owner: ->(controller, model) { controller && controller.current_individual }

end

```

Here the problem is I want to track the owner as current\_company if the company is signed in , but public\_activity gem doesnt provide multiple owner types 

I want to track that if the current\_individual is signed in then the owner type and id would be of individual and if company is signed in then according to that.

what i am doing is 

```
class Event < ActiveRecord::Base
  include PublicActivity::Model
  tracked owner: ->(controller, model) { controller &&  controller.individual_signed_in? ? controller.current_individual : controller.current_company  }
end

```

but i am getting owner id and type when individual is logged in but not getting owner type and id when company is logged in