From 6f85dad2f878b5be73c242f53d8d6e848f07e45e Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Wed, 11 Aug 2010 16:40:45 +1200 Subject: Fixes moderation toggler. --- app/models/blog_comment.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/models/blog_comment.rb b/app/models/blog_comment.rb index cab2227..37e11ac 100644 --- a/app/models/blog_comment.rb +++ b/app/models/blog_comment.rb @@ -15,7 +15,7 @@ class BlogComment < ActiveRecord::Base end def toggle - RefinerySetting[:comment_moderation] = !self.enabled? + RefinerySetting[:comment_moderation] = {:value => !self.enabled?, :scoping => :blog} end end end @@ -29,7 +29,7 @@ class BlogComment < ActiveRecord::Base end def recipients=(emails) - RefinerySetting[:comment_notification_recipients] = emails + RefinerySetting[:comment_notification_recipients] = {:value => emails, :scoping => :blog} end end end -- cgit v1.2.3