Class: Para::Stall::Admin::ShippingNotesController

Inherits:
Admin::ComponentController
  • Object
show all
Defined in:
app/controllers/para/stall/admin/shipping_notes_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



13
14
15
16
17
18
19
20
21
22
# File 'app/controllers/para/stall/admin/shipping_notes_controller.rb', line 13

def create
  service = ::Stall.config.service_for(:shipping_notification).new(@cart, params)

  if service.call
    render 'sent', layout: false
  else
    flash_message(:error)
    render 'new', layout: false
  end
end

#newObject



9
10
11
# File 'app/controllers/para/stall/admin/shipping_notes_controller.rb', line 9

def new
  render layout: false
end