summaryrefslogtreecommitdiff
path: root/users/app/helpers
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-12-17 19:03:45 +0100
committerAzul <azul@leap.se>2012-12-17 19:03:45 +0100
commitbe2d8fbd65f4ed2e1e97b19a3322da20e2fb4eda (patch)
treee4443e2dfcc90529d4cbf72303eacdc580fc5b72 /users/app/helpers
parentb90ce01890907d1c7f46f46bafcef416570a4c4b (diff)
activate email tab after changing email settings
Diffstat (limited to 'users/app/helpers')
-rw-r--r--users/app/helpers/users_helper.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/users/app/helpers/users_helper.rb b/users/app/helpers/users_helper.rb
index b017bca..6d76d6f 100644
--- a/users/app/helpers/users_helper.rb
+++ b/users/app/helpers/users_helper.rb
@@ -29,4 +29,9 @@ module UsersHelper
classes << (@user.new_record? ? 'new' : 'edit')
classes.compact
end
+
+ def email_settings?
+ params[:user] &&
+ params[:user].keys.detect{|key| key.index('email')}
+ end
end