app/helpers/notification_helper.rb in kuppayam-0.1.5 vs app/helpers/notification_helper.rb in kuppayam-0.1.6dev2

- old
+ new

@@ -1,11 +1,7 @@ module NotificationHelper - # This function will set a notification message depending up on the request type (ajax - xml http or direct http) - # Example - # set_notification("Success", "The message has been sent successfully") - # set_notification("Success", "Permission denied") - + def default_notification_configuration { success: false, title: "<NOT SET>", message: "<NO MESSAGE SET>" @@ -17,10 +13,14 @@ @notification.reverse_merge!(default_notification_configuration) else @notification = default_notification_configuration end end - + + # This function will set a notification message depending up on the request type (ajax - xml http or direct http) + # Example + # set_notification("Success", "The message has been sent successfully") + # set_notification("Success", "Permission denied") def set_notification(success, title, message) @notification[:success] = success @notification[:title] = title @notification[:message] = message end