Class: BookingsyncPortal::Admin::RentalsController

Inherits:
BaseController show all
Defined in:
app/controllers/bookingsync_portal/admin/rentals_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



7
8
9
10
11
12
13
# File 'app/controllers/bookingsync_portal/admin/rentals_controller.rb', line 7

def index
  @not_connected_rentals = .rentals.visible.ordered.not_connected
  @visible_rentals = .rentals.visible
  @remote_accounts = .remote_accounts
  @remote_rentals_by_account = .remote_rentals.ordered
    .includes(:remote_account).group_by(&:remote_account)
end

#showObject



15
16
17
# File 'app/controllers/bookingsync_portal/admin/rentals_controller.rb', line 15

def show
  rental
end