summaryrefslogtreecommitdiff
path: root/users/app/controllers/email_aliases_controller.rb
blob: c90432f7d2bce69b80cf0772f9b52f1987705ef1 (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) #TODO: this path doesn't exist. will want to add path for identities controller
  end

end