Class: BookingsyncPortal::Connection
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- BookingsyncPortal::Connection
- Defined in:
- app/models/bookingsync_portal/connection.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#notify_via_message_bus ⇒ Object
14 15 16 17 18 |
# File 'app/models/bookingsync_portal/connection.rb', line 14 def MessageBus.publish "/account-#{rental.account_id}", { refresh_from: BookingsyncPortal::Engine.routes.url_helpers.admin_rental_path(rental, format: :js) } end |