diff options
author | azul <azul@riseup.net> | 2013-01-20 23:41:11 -0800 |
---|---|---|
committer | azul <azul@riseup.net> | 2013-01-20 23:41:11 -0800 |
commit | ed1caa740f0e58cfd5f2d908946461154db68174 (patch) | |
tree | d4481ebc868bb1169ba40f7bf9f21d984e3e0560 /users/app/helpers/users_helper.rb | |
parent | 168c36b578d675c99aad62a350aa68cc1b6d1316 (diff) | |
parent | b348f9dbf3b8298e0e76bda6a9da973da25ed9bd (diff) |
Merge pull request #19 from leapcode/feature/partial-refactor
more flexible email partial
Diffstat (limited to 'users/app/helpers/users_helper.rb')
-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 |