Sha256: 89881fa6bcfccc467c1c60e12eefc4127d81dd6013bbd5e857fc46b49623b836
Contents?: true
Size: 449 Bytes
Versions: 4
Compression:
Stored size: 449 Bytes
Contents
module QuickbooksWebConnector class QwcController < QuickbooksWebConnectorController def download @user = QuickbooksWebConnector.config.users[params[:username]] if !@user render nothing: true, status: :not_found else send_data render_to_string(:qwc), disposition: 'attachment', filename: "#{@user.username}.qwc", type: :xml end end end end
Version data entries
4 entries across 4 versions & 1 rubygems