Sha256: 09937052541963500f0585c4a0b7a2f1ada641803c439675435a652078236f35
Contents?: true
Size: 259 Bytes
Versions: 1
Compression:
Stored size: 259 Bytes
Contents
Api::V1::PartiesController.class_eval do def user party = Party.find(params[:id]) user = party.user if user render json: {success: true, user: user.to_data_hash} else render json: {success: true, user: nil} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
erp_tech_svcs-4.2.0 | lib/erp_tech_svcs/extensions/compass_ae/erp_base_erp_svcs/controllers/api/parties_controller.rb |