Class: BookingsyncPortal::Admin::RentalsController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BookingsyncPortal::ApplicationController
- BaseController
- BookingsyncPortal::Admin::RentalsController
- Defined in:
- app/controllers/bookingsync_portal/admin/rentals_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/controllers/bookingsync_portal/admin/rentals_controller.rb', line 7 def index @not_connected_rentals = current_account.rentals.visible.ordered.not_connected @visible_rentals = current_account.rentals.visible @remote_accounts = current_account.remote_accounts @remote_rentals_by_account = current_account.remote_rentals.ordered .includes(:remote_account).group_by(&:remote_account) end |
#show ⇒ Object
15 16 17 |
# File 'app/controllers/bookingsync_portal/admin/rentals_controller.rb', line 15 def show rental end |