summaryrefslogtreecommitdiff
path: root/users/app/helpers
diff options
context:
space:
mode:
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