foodcoop-adam/foodsoft

View on GitHub
app/controllers/feedback_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class FeedbackController < ApplicationController

  def new
  end

  def create
    if params[:message].present?
      Mailer.feedback(current_user, params[:message]).deliver
      redirect_to root_url, notice: t('feedback.create.notice')
    else
      render :action => 'new'
    end
  end

end