Method: Admin::Blog::SettingsController#notification_recipients
- Defined in:
- app/controllers/admin/blog/settings_controller.rb
#notification_recipients ⇒ Object
notification_recipients for notifying recipients
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'app/controllers/admin/blog/settings_controller.rb', line 49 def notification_recipients @recipients = BlogComment::Notification.recipients if request.post? BlogComment::Notification.recipients = params[:recipients] flash[:notice] = t('admin.blog.settings.notification_recipients.updated', :recipients => params[:recipients]) unless request.xhr? redirect_to admin_blog_posts_path else render :text => "<script type='text/javascript'>parent.window.location = '#{admin_blog_posts_path}';</script>", :layout => false end end end |