summaryrefslogtreecommitdiff
path: root/users/config
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-12-17 17:48:39 +0100
committerAzul <azul@leap.se>2012-12-17 17:48:39 +0100
commitb90ce01890907d1c7f46f46bafcef416570a4c4b (patch)
treef8f7ac9560b37bba6272b0251f0be4d65e691314 /users/config
parent7528695461f2c5725fe29787aa6bf703050a1a4a (diff)
enabled destroying email aliases - no ajax yet.
Diffstat (limited to 'users/config')
-rw-r--r--users/config/locales/en.yml1
-rw-r--r--users/config/routes.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/users/config/locales/en.yml b/users/config/locales/en.yml
index d068e70..3c71e7e 100644
--- a/users/config/locales/en.yml
+++ b/users/config/locales/en.yml
@@ -15,6 +15,7 @@ en:
add_email_alias: "Add email alias"
user_updated_successfully: "Settings have been updated successfully."
user_created_successfully: "Successfully created your account."
+ email_alias_destroyed_successfully: "Successfully removed the alias '%{alias}'."
activemodel:
models:
diff --git a/users/config/routes.rb b/users/config/routes.rb
index 3c5fb73..8985502 100644
--- a/users/config/routes.rb
+++ b/users/config/routes.rb
@@ -11,7 +11,7 @@ Rails.application.routes.draw do
get "signup" => "users#new", :as => "signup"
resources :users do
- resources :email_aliases
+ resources :email_aliases, :only => [:destroy], :id => /.*/
end
end