Class: Workarea::Api::Storefront::ContactsController
- Inherits:
-
ApplicationController
- Object
- Workarea::ApplicationController
- ApplicationController
- Workarea::Api::Storefront::ContactsController
- Defined in:
- app/controllers/workarea/api/storefront/contacts_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#assert_current_metrics_id, #cache_page, #skip_session
Methods included from Authentication
#authentication?, #current_user, find_user
Instance Method Details
#create ⇒ Object
5 6 7 8 9 10 |
# File 'app/controllers/workarea/api/storefront/contacts_controller.rb', line 5 def create inquiry = Inquiry.create!(inquiry_params) Workarea::Storefront::InquiryMailer.created(inquiry.id.to_s).deliver_later render(json: { inquiry: inquiry }) end |