A platform for community discussion. Free, open, simple.
Fix the build - take 2.
Vinoth Kannan754e1238b02a
diff --git a/app/models/notification.rb b/app/models/notification.rbindex 9b907bc3470..bf52ccdcfd3 100644--- a/app/models/notification.rb+++ b/app/models/notification.rb@@ -147,14 +147,12 @@ class Notification < ActiveRecord::Base# Be wary of calling this frequently. O(n) JSON parsing can suck.def data_hash- @data_hash ||= begin- return {} if data.blank?+ return {} if data.blank?- parsed = JSON.parse(data)- return {} if parsed.blank?+ parsed = JSON.parse(data)+ return {} if parsed.blank?- parsed.with_indifferent_access- end+ parsed.with_indifferent_accessenddef url@@ -232,11 +230,6 @@ class Notification < ActiveRecord::BasePost.where(topic: topic_id, post_number: post_number).pluck_first(:id)end- def reload(options = nil)- super- @data_hash = nil- end-protecteddef refresh_notification_count