Class: BookingsyncPortal::Admin::RemoteAccountsController

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

Instance Method Summary collapse

Instance Method Details

#createObject



10
11
12
13
14
# File 'app/controllers/bookingsync_portal/admin/remote_accounts_controller.rb', line 10

def create
  BookingsyncPortal::Write::EnsureSourceExists.new().call
  @remote_account = scope.create()
  respond_with @remote_account, location: admin_rentals_path
end

#newObject



6
7
8
# File 'app/controllers/bookingsync_portal/admin/remote_accounts_controller.rb', line 6

def new
  @remote_account = scope.build
end