summaryrefslogtreecommitdiff
path: root/users/app/controllers/email_aliases_controller.rb
blob: 4628a7f20c8de6a60b7e34876fb6a1c337ddeb9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class EmailAliasesController < UsersBaseController
  before_filter :fetch_user

  def destroy
    @alias = @user.email_aliases.delete(params[:id])
    if @user.save
      flash[:notice] = t(:email_alias_destroyed_successfully, :alias => bold(@alias))
    end
    redirect_to edit_user_email_settings_path(@user)
  end

end