Fixes moderation toggler.
This commit is contained in:
parent
9dc207fbe5
commit
6f85dad2f8
1 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ class BlogComment < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def toggle
|
def toggle
|
||||||
RefinerySetting[:comment_moderation] = !self.enabled?
|
RefinerySetting[:comment_moderation] = {:value => !self.enabled?, :scoping => :blog}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -29,7 +29,7 @@ class BlogComment < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def recipients=(emails)
|
def recipients=(emails)
|
||||||
RefinerySetting[:comment_notification_recipients] = emails
|
RefinerySetting[:comment_notification_recipients] = {:value => emails, :scoping => :blog}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue