class RenderSync::RefetchPartialCreator
Public Class Methods
new(name, resource, scoped_resource, context)
click to toggle source
Calls superclass method
RenderSync::PartialCreator::new
# File lib/render_sync/refetch_partial_creator.rb, line 4 def initialize(name, resource, scoped_resource, context) super self.partial = RefetchPartial.new(name, self.resource.model, nil, context) end
Public Instance Methods
message()
click to toggle source
# File lib/render_sync/refetch_partial_creator.rb, line 9 def message RenderSync.client.build_message(channel, refetch: true, resourceId: resource.id, authToken: partial.auth_token, channelUpdate: partial.channel_for_action(:update), channelDestroy: partial.channel_for_action(:destroy), selectorStart: partial.selector_start, selectorEnd: partial.selector_end ) end