# -*- encoding : utf-8 -*- class Settings::NotifiersController < ApplicationController before_filter :authenticate_user! load_and_authorize_resource :user load_and_authorize_resource :class => Settings::Notifier, :through => :user, :singleton => true, :shallow => true def show end def update if @notifier.update_attributes(params[:settings_notifier]) flash[:notice] = I18n.t("flash.settings.saved") redirect_to user_settings_notifier_path(@user) else flash[:notice] = I18n.t("flash.settings.save_error") redirect_to user_settings_notifier_path(@user) end end end