aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2010-08-11 16:40:45 +1200
committerPhilip Arndt <parndt@gmail.com>2010-08-11 16:40:45 +1200
commit6f85dad2f878b5be73c242f53d8d6e848f07e45e (patch)
treefa895c626a83392b6a5f1fbe1b4cd60901a5022c /app
parent9dc207fbe54a9df48ad4d903897f1fec37fff392 (diff)
downloadrefinerycms-blog-6f85dad2f878b5be73c242f53d8d6e848f07e45e.tar.gz
refinerycms-blog-6f85dad2f878b5be73c242f53d8d6e848f07e45e.tar.bz2
refinerycms-blog-6f85dad2f878b5be73c242f53d8d6e848f07e45e.zip
Fixes moderation toggler.
Diffstat (limited to 'app')
-rw-r--r--app/models/blog_comment.rb4
1 files changed, 2 insertions, 2 deletions
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