Class: Spree::Api::AttachmentsController
- Inherits:
-
BaseController
- Object
- BaseController
- Spree::Api::AttachmentsController
- Defined in:
- app/controllers/spree/api/attachments_controller.rb
Instance Method Summary collapse
Instance Method Details
#update ⇒ Object
6 7 8 9 10 |
# File 'app/controllers/spree/api/attachments_controller.rb', line 6 def update @attachment = Spree::Attachment.accessible_by(current_ability, :update).find(params[:id]) @attachment.update() respond_with(@attachment, default_template: :show) end |