diff --git a/app/controllers/ordering_controller.rb b/app/controllers/ordering_controller.rb index faf3ef02..87283011 100644 --- a/app/controllers/ordering_controller.rb +++ b/app/controllers/ordering_controller.rb @@ -178,7 +178,7 @@ class OrderingController < ApplicationController order = Order.find(params[:id]) comment = order.comments.build(params[:comment]) comment.user = @current_user - if !comment.text.empty? and comment.save + if !comment.text.blank? and comment.save flash[:notice] = "Kommentar wurde erstellt." else flash[:error] = "Kommentar konnte nicht erstellt werden. Leerer Kommentar?"