app/controllers/admin/blog/settings_controller.rb in refinerycms-blog-0.9.8.dev1 vs app/controllers/admin/blog/settings_controller.rb in refinerycms-blog-0.9.8.0.rc1
- old
+ new
@@ -1,11 +1,20 @@
class Admin::Blog::SettingsController < Admin::BaseController
- def update_notified
+ def notification_recipients
+ @recipients = BlogComment::Notification.recipients
+ if request.post?
+ BlogComment::Notification.recipients == params[:recipients]
+ end
end
def moderation
-
+ enabled = BlogComment::Moderation.toggle
+ unless request.xhr?
+ redirect_back_or_default(admin_blog_posts_path)
+ else
+ render :json => {:enabled => enabled}
+ end
end
end