Sha256: 2f058376994c713c17daa96ddd43db4d7509ef9ea8bc76279545b66289b29909
Contents?: true
Size: 483 Bytes
Versions: 5
Compression:
Stored size: 483 Bytes
Contents
module Spree module Api class AddressesController < Spree::Api::BaseController respond_to :json def show @address = Address.find(params[:id]) authorize! :read, @address respond_with(@address) end def update @address = Address.find(params[:id]) authorize! :read, @address @address.update_attributes(params[:address]) respond_with(@address, :default_template => :show) end end end end
Version data entries
5 entries across 5 versions & 2 rubygems