Module: Bustle::Concern::SubscriberResource

Extended by:
ActiveSupport::Concern
Included in:
Subscription
Defined in:
lib/bustle/concerns/subscriber_resource.rb

Instance Method Summary collapse

Instance Method Details

#subscriber_resourceObject



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

def subscriber_resource
  subscriber = Bustle::Subscriber.to_adapter.get!(self.subscriber_id)
  subscriber.resource_class.constantize.to_adapter.get!(subscriber.resource_id)
end