Class: BookingsyncPortal::Connection

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/bookingsync_portal/connection.rb

Direct Known Subclasses

Connection

Instance Method Summary collapse

Instance Method Details

#notify_via_message_busObject



14
15
16
17
18
# File 'app/models/bookingsync_portal/connection.rb', line 14

def notify_via_message_bus
  MessageBus.publish "/account-#{rental.}", { refresh_from:
    BookingsyncPortal::Engine.routes.url_helpers.admin_rental_path(rental, format: :js)
  }
end