Diff

Diff code posted
created at 29 Jun 15:51

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: app/models/notification_setting.rb
===================================================================
--- app/models/notification_setting.rb        (revision 80)
+++ app/models/notification_setting.rb        (revision 81)
@@ -17,6 +17,10 @@
     read_attribute(:options) || {}
   end
 
+  def options=(value)
+    write_attribute(:options, options.merge(value))
+  end
+
   def notification
     @notification ||= Notification.for(self.notification_type)
   end
485 Bytes in 4 ms with coderay