Sha256: 8f3b0c2db37d8457277b132b551525b1cdb6e69b38768f02e5fc391a00207072
Contents?: true
Size: 492 Bytes
Versions: 16
Compression:
Stored size: 492 Bytes
Contents
module Workarea module Api module Storefront class ContactsController < Api::Storefront::ApplicationController def create inquiry = Inquiry.create!(inquiry_params) Workarea::Storefront::InquiryMailer.created(inquiry.id.to_s).deliver_later render(json: { inquiry: inquiry }) end private def inquiry_params params.permit(:name, :email, :order_id, :subject, :message) end end end end end
Version data entries
16 entries across 16 versions & 2 rubygems