diff options
author | Azul <azul@leap.se> | 2013-01-17 17:35:39 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-01-18 07:50:40 +0100 |
commit | b348f9dbf3b8298e0e76bda6a9da973da25ed9bd (patch) | |
tree | d4481ebc868bb1169ba40f7bf9f21d984e3e0560 /users/app/helpers | |
parent | 168c36b578d675c99aad62a350aa68cc1b6d1316 (diff) |
more flexible email partial
Diffstat (limited to 'users/app/helpers')
-rw-r--r-- | users/app/helpers/users_helper.rb | 7 |
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 |