You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got an Asset model, extending this model are Photo, and Plan. When I run fires :on => :create, the subject should be of either type Photo, or Plan. However, it's setting it's type to Asset. Is there a way around this?
photo.rb
class Photo < Asset
# Timeline Events
fires :new_asset, :on => :create,
:actor => :actor,
:secondary_subject => :project
end
plan.rb
class Plan < Asset
# Timeline Events
fires :new_asset, :on => :create,
:actor => :actor,
:secondary_subject => :project
end
asset.rb
class Asset < ActiveRecord::Base
end
Record of Asset, you can see the type here is Photo:
I've got an Asset model, extending this model are Photo, and Plan. When I run fires :on => :create, the subject should be of either type Photo, or Plan. However, it's setting it's type to Asset. Is there a way around this?
photo.rb
plan.rb
asset.rb
Record of Asset, you can see the type here is Photo:
Record of TimelineEvent. You see the type here is Asset. They're mismatched:
The text was updated successfully, but these errors were encountered: