instance method broadcasts_refreshes

Ruby on Rails 2.0.23

Since v2.0.23 Last seen in v2.0.23

Signature

broadcasts_refreshes(stream = model_name.plural)

Same as #broadcasts_refreshes_to, but the designated stream for page refreshes is automatically set to the current model, for creates - to the model plural name, which can be overriden by passing stream.

Parameters

stream opt = model_name.plural
Source
# File app/models/concerns/turbo/broadcastable.rb, line 215
    def broadcasts_refreshes(stream = model_name.plural)
      after_create_commit  -> { broadcast_refresh_later_to(stream) }
      after_update_commit  -> { broadcast_refresh_later }
      after_destroy_commit -> { broadcast_refresh }
    end

Defined in app/models/concerns/turbo/broadcastable.rb line 215 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Turbo::Broadcastable::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close