Sha256: 603b5b2b1bee5a3cfe09d14704208ce95bd69b64743e4a84c211ddfebdaa698a
Contents?: true
Size: 719 Bytes
Versions: 1
Compression:
Stored size: 719 Bytes
Contents
require 'quickapps_feedback/version' require 'quickapps_feedback/feedback' require 'quickapps_feedback/send_feedback_to_uservoice' require 'sinatra/base' module QuickappsFeedback class App < Sinatra::Base def flash request.flash end get '/feedback' do erb :index end post '/feedback' do feedback = Feedback.new(request.env['HTTP_X_MXIT_USERID_R'] || session[:uid], params[:full_message],params[:support_type]) SendFeedbackToUservoice.new.perform(feedback) flash[:notice] = 'thank you for your feedback' redirect to('/') end get '/feedback/new' do erb :new, locals: {support_type: params[:type]} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quickapps_feedback-0.1.1 | lib/quickapps_feedback.rb |