summaryrefslogtreecommitdiff
path: root/users/app/helpers
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-01-17 17:35:39 +0100
committerAzul <azul@leap.se>2013-01-18 07:50:40 +0100
commitb348f9dbf3b8298e0e76bda6a9da973da25ed9bd (patch)
treed4481ebc868bb1169ba40f7bf9f21d984e3e0560 /users/app/helpers
parent168c36b578d675c99aad62a350aa68cc1b6d1316 (diff)
more flexible email partial
Diffstat (limited to 'users/app/helpers')
-rw-r--r--users/app/helpers/users_helper.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/users/app/helpers/users_helper.rb b/users/app/helpers/users_helper.rb
index 5f68085..9feae62 100644
--- a/users/app/helpers/users_helper.rb
+++ b/users/app/helpers/users_helper.rb
@@ -36,4 +36,11 @@ module UsersHelper
value || 'not set'
end
+ def wrapped(item, options = {})
+ options[:as] ||= :div
+ content_tag options[:as], :class => dom_class(item), :id => dom_id(item) do
+ yield
+ end
+ end
+
end