Class: BookingsyncPortal::Admin::RemoteAccountsController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BookingsyncPortal::ApplicationController
- BaseController
- BookingsyncPortal::Admin::RemoteAccountsController
- Defined in:
- app/controllers/bookingsync_portal/admin/remote_accounts_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
10 11 12 13 14 |
# File 'app/controllers/bookingsync_portal/admin/remote_accounts_controller.rb', line 10 def create BookingsyncPortal::Write::EnsureSourceExists.new(current_account).call @remote_account = scope.create(params_remote_account) respond_with @remote_account, location: admin_rentals_path end |
#new ⇒ Object
6 7 8 |
# File 'app/controllers/bookingsync_portal/admin/remote_accounts_controller.rb', line 6 def new @remote_account = scope.build end |