Module: Bustle::Concern::PublisherResource

Extended by:
ActiveSupport::Concern
Included in:
Activity, Subscription
Defined in:
lib/bustle/concerns/publisher_resource.rb

Instance Method Summary collapse

Instance Method Details

#publisher_resourceObject



5
6
7
8
# File 'lib/bustle/concerns/publisher_resource.rb', line 5

def publisher_resource
  publisher = Bustle::Publisher.to_adapter.get!(self.publisher_id)
  publisher.resource_class.constantize.to_adapter.get!(publisher.resource_id)
end