Sha256: 514fadddff328dd22c03f5b5cc25e36c718cdc4a3f5cf169eb55e34e8fffdfc7
Contents?: true
Size: 456 Bytes
Versions: 7
Compression:
Stored size: 456 Bytes
Contents
module Spree module Api module V1 class AddressesController < Spree::Api::V1::BaseController def show @address = Address.find(params[:id]) authorize! :read, @address end def update @address = Address.find(params[:id]) authorize! :read, @address @address.update_attributes(params[:address]) render :show, :status => 200 end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems