Sha256: 67dd4c94ea97e8b90494dff1dfbbb3c27b75654a77c5abcb1bcd8cad7f16f728
Contents?: true
Size: 352 Bytes
Versions: 2
Compression:
Stored size: 352 Bytes
Contents
module RailsPallet class UploadsController < ApplicationController self.responder = RailsPalletResponder respond_to :json def create new_upload = RailsPallet::Upload.create(permitted_params) respond_with new_upload, status: :created end private def permitted_params params.permit(:file) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_pallet-2.3.2 | app/controllers/rails_pallet/uploads_controller.rb |
rails_pallet-2.3.1 | app/controllers/rails_pallet/uploads_controller.rb |