henryaj/Maker-Spark-Server

View on GitHub
app/helpers/message_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
module MessageHelper

    def message_flash_notice(message) 
         if message.save     
            flash[:notice] = "Message has been sent!"
       else
            flash[:notice] = "There has been a problem with your message!"
       end    
   end

end