blob: 9648688c54cc9e7f1e14f3189ca2b89320f5e3ef (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
class Admin::Blog::SettingsController < Admin::BaseController
def notification_recipients
@recipients = BlogComment::Notification.recipients['value']
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
|